Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
i want to change my database server(with different IP address) so i need to edit connection string setting in webconfig file.
how to search that file and edit
Posted 12 Sep '12 - 8:06
deeptul649

Comments
Wes Aday - 12 Sep '12 - 14:08
You will find it with the rest of your application files. It's just a text file so use whatever editor you want.

1 solution

Using Visual Studio, You can find Web.config file in Your Application Treeview from Solution Explorer Window. Edit the underlined part to Your new IP addredd
 
<add name="XXXXX" connectionstring="Data Source=<u><b>10.1.1.1</b></u>; user id=XXXX;> <br mode=" hold=" /><br mode="></add>
 

Open the web.config file for the Web service that you want to modify.
 
The web.config file is found in the virtual folder for the Web service, such as C:\Inetpub\wwwroot\LoggingService.
 
Locate the <connectionStrings> element.
 
In the <add> element, set the connectionString attribute to the new connection string.
 
For example, to change the server name, in the connectionString attribute, change the value of the Data Source string
 

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 475
1 OriginalGriff 315
2 Maciej Los 260
3 Slacker007 240
4 Aarti Meswania 185
0 Sergey Alexandrovich Kryukov 8,953
1 OriginalGriff 7,134
2 CPallini 3,758
3 Rohan Leuva 3,066
4 Maciej Los 2,528


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 12 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid