asp.net – SQL Server未找到或无法访问

前端之家收集整理的这篇文章主要介绍了asp.net – SQL Server未找到或无法访问前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
下面有什么问题?

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: Named Pipes Provider,error: 40 – Could not open a connection to sql Server)

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: 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: Named Pipes Provider,error: 40 – Could not open a connection to sql Server)

怎么可以解决

解决方法

所有程序>> Microsoft sql Server 2008>>配置工具>> sql Server配置管理器>> sql Server服务,并检查sql Server服务状态是否“运行”.
原文链接:https://www.f2er.com/aspnet/246752.html

猜你在找的asp.Net相关文章