| 发表于:2007-02-08 15:54:55 楼主 |
页面服务器连接另一台数据库服务器报错,奇怪的是用winform开发的应用程序就可以远程连接,且连接字符串(连接字符串保证无误)一样。 页面服务器:dotnet运行环境 数据库服务器:内网无ip地址,只有服务器名 报错: server error in '/basecode ' application. -------------------------------------------------------------------------------- sql server does not exist or access denied. description: an unhandled exception occurred during the EXECution of the current web request. please review the stack trace for more information about the error and where it originated in the code. exception details: system.data.sqlclient.sqlexception: sql server does not exist or access denied. source error: an unhandled exception was generated during the EXECution of the current web request. information regarding the origin and location of the exception can be identified using the exception stack trace below. stack trace: [sqlexception: sql server does not exist or access denied.] system.data.sqlclient.connectionpool.getconnection(boolean& isintransaction) +474 system.data.sqlclient.sqlconnectionpoolmanager.getpooledconnection(sqlconnectionstring options, boolean& isintransaction) +372 system.data.sqlclient.sqlconnection.open() +384 basecode.inc.connectdata.r_EXECutesql(sqlcommand com) basecode.inc.connectdata.newbook_count() basecode._default.page_load(object sender, eventargs e) system.web.ui.control.onload(eventargs e) +67 system.web.ui.control.loadrecursive() +35 system.web.ui.page.processrequestmain() +731 -------------------------------------------------------------------------------- version information: microsoft .net framework version:1.1.4322.573; asp.net version:1.1.4322.573 |
|
|
|
|