急啊 网站在本地上没问题到服务器上面有问题
“/”应用程序中的服务器错误。
--------------------------------------------
在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错)
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息:
System.Data.SqlClient.SqlException: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错)
源错误:
行 32: //try
行 33: //{
行 34: conn.Open();
行 35: SqlDataAdapter da = new SqlDataAdapter(sql, conn);
行 36: da.Fill(ds);
源文件: d:\wwwroot\haiis\demo10\App_Code\SqlHelper.cs 行: 34
堆栈跟踪:
[SqlException (0x80131904): 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错)]
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +96
System.Data.SqlClient.SqlConnection.Open() +122
SqlHelper.getData(String sql) in d:\wwwroot\haiis\demo10\App_Code\SqlHelper.cs:34
rdatadrain.DoDataBind() in d:\wwwroot\haiis\demo10\rdatadrain.aspx.cs:25
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Data.SqlClient.SqlConnection.Open() +122
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
SqlHelper.getData(String sql) in d:\wwwroot\haiis\demo10\App_Code\SqlHelper.cs:34
SqlHelper.getData(String sql) in d:\wwwroot\haiis\demo10\App_Code\SqlHelper.cs:34
rdataom.DoDataBind() in d:\wwwroot\haiis\demo10\rdataom.aspx.cs:25
rdatadrain.DoDataBind() in d:\wwwroot\haiis\demo10\rdatadrain.aspx.cs:25
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
rdatadrain.Page_Load(Object sender, EventArgs e) in d:\wwwroot\haiis\demo10\rdatadrain.aspx.cs:18
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain