System.ComponentModel.Win32Exception:找不到网络路径

时间:2014-01-23 12:55:02

标签: asp.net iis database-connection connection-string

我将我的应用程序部署到iis.Its工作正常时,我给出了本地数据库的连接字符串

<add name="WPSConnectionString" connectionString="server=UXTSRV001\SQL2008;
   database=SupportPortal;Max Pool Size=10;uid=sa;pwd=password@123;" 
 providerName="System.Data.SqlClient" /

但是当我给出远程服务器的连接字符串时,我收到了错误

System.ComponentModel.Win32Exception: The network path was not found

连接字符串如下

<add name="WPSConnectionString" connectionString="server=MYSERVER;   
database=UISupportPortal;Max Pool Size=10;uid=MYUSER;pwd=PASSWORD;"  
providerName="System.Data.SqlClient" />

0 个答案:

没有答案