如何在IIS服务器上查找WebConfig文件 [英] How to find webconfig file on iis server

查看:2460
本文介绍了如何在IIS服务器上查找WebConfig文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改数据库服务器(使用不同的IP地址),所以我需要在webconfig文件中编辑连接字符串设置.
如何搜索该文件并编辑

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

推荐答案

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


这篇关于如何在IIS服务器上查找WebConfig文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆