页面服务器连接另一台数据库服务器报错百分在线等方案
uyou 2007-02-08 03: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