Configuration :: Change AccessConnectionString In Web.config After Deployment?
Apr 22, 2010
I'm developping an ASP.NET web applition which will be running on a intranet server. The web application will read and write data from / to an access mdb.
The link to this mdb is specified under the web.config file. However, in this web.config, the connection string points to a absolute path (for ex. c:information.mdb).
Is it possble to change this path after the web application is installed on the server (without having it to open in visual studio)? This is needed, because the application will be installed at other locations too, all pointing towards their own server and mdb (and this mdb file won't be always be on the c: drive).
I tried opening the web.config file with notepad, and changing it. Everything seems to work, but I'm not sure this method is good. Since I assumed you have to rebuild the application if you change somthing in the code...
View 2 Replies
Similar Messages:
Mar 21, 2010
How to use encrypt web.config in deployment?Where it should be kept?
Or in other way how to encrypt web.config file in deployment?
View 5 Replies
Mar 27, 2011
Can I create an incremental deployment package using either Visual Studio 2010 Web Deployment Projects or Web Deploy (Web Deployment Tool) .
I need to automatically select changed files from a source and destination or a change set on TFS and build a deployment package only with the changed files.
View 9 Replies
Mar 22, 2011
I have a website that has 2 databases and 2 folders , what I need to do is to create a combo box and if the user select " project1" I should see the tree that populates its data from the first database if user selects "project2" I sshould see the tree that populates its data from the second database , both the 2 trees will be populated in the same page following below is the part of the connection string and folder values for 1 selection but how can i add another one and change it on the fly from the combo box selection
<add key="FolderName" value="test" />
<add key="EnglishFolderName" value="demo1" />
<add key="Virtual path" value="/" />
</appSettings>
<connectionStrings>
<!--<add name="MyConnectionString" connectionString="Data Source=SADERSQLEXPRESS;Initial Catalog=LawsTest;Integrated Security=True;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>-->
<add connectionString="Data Source=.;Integrated Security=True;MultipleActiveResultSets=True;Initial Catalog=TarbooshLaw" name="MyConnectionString(Arabic)" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
View 5 Replies
Jan 31, 2011
Is it possible to change web.config file at run time...
(here i want to change database connection details at run time)
View 1 Replies
Mar 24, 2011
[Code]....
How to change ApplicationName in C# or gobal.asax, or web2.config
View 1 Replies
Sep 14, 2010
I am having an issue where if I change my url to .asp from .aspx i get a 404 error but it is not handled by my custom errors. If I change the url to def23947823h.aspx it is caught and redirects to correct page.
[Code]....
View 8 Replies
Nov 19, 2010
I am just starting my first MVC Web Application and have noticed that I now not only have a Web.config file in the root, but 2 sub-files, for Debug and Release configurations. I've read up a bit on what this is, in that I can put specific configurations for my different environments in each file, but I am confused as to when these seperate files are actually used.
Do I HAVE to use the built in Deployment/Publish tools within Visual Studio in order to benefit from this, or, if I set my build mode to Release, and do a simple build of my web application, then deploy the compiled files, along with the Web.config AND Web.Release.config, would that work?
I'm just not sure what deployment options I have to take advantage of these seperate config files?
View 1 Replies
Dec 2, 2010
I am using asp.net
In my .cs page I am setting a value for a variable [count = 12]. count is a var, which I have declared on the aspx page.
Now I have to change the vlaue of the count = 13. which should be written in the !IspostBack event in the Page_Load(). But the issue is this that it's a very small change and I can't re deploy my website for this small change.
Is their any way I can modify the code in the production site whitout re deploying it?
View 2 Replies
Jan 7, 2011
I am using WIX 3.6 for VS2010 to create our MSI's for our web application setups. This is all working fine and all in terms of deployment and uninstall.
I recently allowed the user to specify the virtual directory and application pool names to support side by side installs. This is all fine as I have created my own setup bootstrapper.
The issue is with uninstallation.
If the user does not specify the names and leaves the default values, it will install successfully.
The minute the user updates the names from the defaults, the install process will not remove the app-pool and virtual directory. This is what I have found consistently with my testing.
View 2 Replies
Jun 4, 2010
We are working on an asp.net project. There are 5 developers in the team. The team size might increase in future. Deployment of the project, often creates some problems for us. We are using svn (very much like vss) to update and commit our codes to a common location.Apart from all these, the changes made by one developer sometimes affects the changes made by another. We usually move only the aspx files and dlls to the server. This causes lots of issues to the testing team as the testers need to check the entire application whenever a dll is updated on the server. We are now looking for a deployment method, that includes both pre-compilation as well a means that enables us to do patch releases (like making a change to the aspx.cs alone without having to update the entire dll) If it is not possible, what is the best deployment method that would suit our requirements?
View 2 Replies
Jan 14, 2011
While developing my web application I was testing using the cassini web server and everything works great! So my program is complete and I am trying to publish it out to a client IIS server on a Windows 2008 R2 server. I have created an app.pool for this application and set it to run with a domain admin users (I am not using the "Administrator" account) since the file processing will be writing the file to a NAS device via a UNC path. When I start the debugging on the server and look at task manager it shows that the "w3wp.exe" is running using the domain admin account, but when I run my code it does not give me a run time error I just get the following warning in the event log.
View 11 Replies
Mar 25, 2010
multiple websites in a webfarm. I need to deploy multi lingual sites under iis likewww.xxx.com will point to a folder where I want to keep all the files and bin folder but the folders below like /en, /fr, /es etc will be having the web.config inherited from the root folder. My problem is1. How to share the bin in the root folder with other websites beneath it. like I havewww.xxx.com pointing to xxx directory and I have /en pointing to xxx/en. Rather than me copying the bin folder to every website? I cannot place in gac as this is multi server env. is there a way i can set all the servers gac to get dlls from one directory?
View 1 Replies
Aug 26, 2010
I have an application that is developed with Web forms. I added some new functionlities using MVC by folloiwng the post ttp://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx . The application works fine in Visual Studio 2008 builtin server but after deployment on IIS 7 with integrated mode, i am facing issues with MVC part of the application. Webform part works fine. Like www.example.com/content/default.aspx (webform) works fine but www.example.com/Home/Index (MVC) doesnt work and saysHTTP Error 404.0 - Not FoundThe resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
View 2 Replies
Aug 26, 2010
I think I am finally ready to publish my website but I have a issue that is causing me some confusion.The website has been built on my desktop so it's location is something likeC:Documents and SettingsMeDesktopIn the project, under a folder called "App Data" i have my database and all the connection strings in my website point to this folder.However when I use VS to publish the website if for example I were to publish it tooC:CopySiteobviously even though there is a copy of the database in the "App Data" folder in this location all the connection strings point to the Database location on my desktop. How can I get it so the CopySite "App Data" folder is the one used to store all my data?
View 9 Replies
Jan 12, 2011
I have a web site which has been deployed to my client server. after the deployment I found some changes required in code/source file and that needs to be fixed right away. Since my project is so huge I dont want to deploy the entire web site once again to my client server. I want to deploy the updated souce file or updated source file dll.
View 1 Replies
Feb 23, 2011
Can any one explain what is web application deployment.and how it is useful.in the sense of advantages.also steps for web deployment.
View 5 Replies
Mar 16, 2010
How to deploy the asp application.Please explain in simple term.
View 2 Replies
Jul 16, 2010
I have a webaplication which is converted into a setup for installation.
Now i have made change to the webapplication and have build the new version of the setup,But this version of the setup doesn't have the changes that i see in the debug mode.
View 5 Replies
May 3, 2010
I have deploy my web site, it contains a project!
in MyWeb there are all the aspx page and some entites datamodel, in MyApp there are the class with function like "getter data from DB" and there is a entity data model.
afeter the deploy, I have only the web.config and the connection string for the entity datamodel....itīs run ok, read/write the data on the DB.
The problem is with MyApp.....after the deploy it is a dll file and I donīt have the app.config and the entity inside it donīt run, not read/write nothing on the DB.
There arenīt error or messager but not read/write the data in the MyApp project.
all run on the iis 7
now...the question is:
I lose the connection string (in app.config) after the deploy?
Can I put a entity in the MyWeb and read it in another project (myApp)?
ps: for connect to DB I use not the c# code:
var db=from x in AccessDB.Example select x;
View 1 Replies
Jan 5, 2011
I am developing web applicaiton. I want to read web.config in App.config file. I have appSettings and connectionStrings in web.config. How to read that?
View 10 Replies
Nov 2, 2010
First of all, I am trying to deploy a web application, without virtual directory. Yes...I have no other option but to try this due to some non-tehnical constraints.
Now, I have developed an ASP.NET 3.5 Web application, which works fine on my local ASP.NET Development Web Server. Then, I published the application to the actual webserver using the VS2008 Publish... option. When I got some error messages related to web.config, I removed the corresponding items from the web.config.
When I can access the page but the code inside the page doesn't really work. When I open the Default.aspx, which is directly under the website, I keep on getting this error:
Compiler Error Message: CS0246: The type or namespace name 'DynamicLoadControl' could not be found (are you missing a using directive or an assembly reference?)
This DynamicLoadControl is a class that I have developed and is present in App_CodeDynamicLoadControl.cs file (in the same namespace).
I have searched a lot and tried everything except creating a virtual directory. First of all, is it possible to have asp.net 3.5 website without virtual directory.
View 3 Replies
Mar 10, 2010
I want to know what are the ways to debug the application after deployment. Let's say I have used x-copy deployment, to copy dll and also some source code files. If I want to modify some source code and recopy them into production. Can somebody tell me how to debug those modified files?
View 2 Replies
Aug 6, 2010
I am using the Standard edition of VS2008 to develop a website locally. Now, I am ready to upload the website to a remote server, but I cannot find any output to transfer. I clicked on the "Build Web Site" option of the "Build" drop-down list and got a "Build Succeeded" message, but nothing else.
I only found a file of type "Visual Studio Solution user Options". It was in a folder under a "Projects" folder within the "Visual Studio 2008" subdirectory. Does that one file contain everything needed for the website to function on the remote server?
I also found another folder along with the file named "PrecompiledWeb". This folder contained web page files and related static files of a previous precompile operation, but no newer files. There was also a "bin" folder with old compiled files and application extension files. I cannot find newly compiled files anywhere. What am I doing wrong?
View 2 Replies
Nov 22, 2010
I've deployed a test project onto one of our web servers, and it doesn't appear that the CSS file is taking correctly. The page loads fine, but the styles aren't there. It looked fine in dev, but not now. Any thoughts on what's going on? I'm sure there is an easy solution, but I'm very new to the ASP.NET world.
View 6 Replies