Windows 2008 R2企业版问题(消息:System.Web.Services.Protocols.SoapException:服务器无法处理请求)

时间:2014-01-23 06:27:32

标签: c# sql-server sql-server-2008-r2

您好我在Windows 2008 r2企业版上面临以下问题,但它在Windows 2008 r2标准版上没问题。

问题: .Net Windows服务称为Web服务。网络服务低于错误..

错误消息:

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)

at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)

at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)

at System.Data.SqlClient.SqlConnection.Open()

at Errorlog.LogError(Exception objEx, Int32 userId, String pageURL)

at AuthorizationProcess.LoadProcess(DataSet dsProcessList)

---内部异常堆栈跟踪结束---

堆栈追踪:

at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

at WebAuthorizationService.WSMediaAuthorizationService.AuthorizationProcess.LoadProcess(DataSet dsProcessList)

at WebAuthorizationService.Revision.LoadProcessForMediaServer()

1 个答案:

答案 0 :(得分:0)

在代码中的某处,您正在连接到SQL服务器,并且无法建立连接。

要么指向错误的sql server(可能是开发机器?),要么两者之间没有物理连接,应用程序服务器和sql server。