错误提示: (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
2012-03-08 17:05
836 查看
解决方法:
在web.config中连接字符串为:
<appSettings> <add key="connectionStrings" value="server=127.0.0.1;database=ViewBook;uid=sa;pwd=admin"/> </appSettings>
我们看到server=127.0.0.1
当我将它去掉后,即可浏览!
<appSettings> <add key="connectionStrings" value="database=ViewBook;uid=sa;pwd=admin"/> </appSettings>
相关文章推荐
- Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
- provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
- Named Pipes Provider: Could not open a connection to SQL Server [53]
- SQL Server无法以local 登陆问题的解决方法provider: Named Pipes Provider, error: 40 - Could not open a connection
- SQL SERVER – FIX : ERROR : (provider: Named Pipes Provider, error: 40 – Could not open a connection
- SQL SERVER – FIX : ERROR : (provider: Named Pipes Provider, error: 40 – Could not open a connection
- 如何解决sql连接错误HResult 0x2, Level 16, State 1 Could not open a connection to SQL Server [2].
- EntityFramework.SqlServer.dll 中发生 其他信息: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的连接)
- 如何解决sql连接错误HResult 0x2, Level 16, State 1 Could not open a connection to SQL Server [2].
- SQL2005远程登录失败的检查和解决(Could not open a connection to SQL Server)
- Could not open a connection to SQL Server [2]
- SQL2005远程登录失败的检查和解决(Could not open a connection to SQL Server)
- SQL2005远程登录失败的检查和解决(Could not open a connection to SQL Server)
- Fixed -- Could not open a connection to SQL Server
- 【错误】:Could not open JDBC Connection for transaction; nested exception is: Communications link failure;The last packet sent successfully to the server was 1 milliseconds ago
- 解决sqllserver登录的时候提示错误录过程中发生错误。(provider:命名管道提供程序,error:0-管道的另一端上无任何进程。)(Microsoft SQL Server,错误:233)
- MS SQL错误:SQL Server failed with error code 0xc0000000 to spawn a thread to process a new login or connection. Check the SQL Server error log and the Windows event logs for information about possible related problems
- provider:命名管道提供程序,error:40 - 无法打开到SQL Server的连接 (Microsoft SQL Server, 错误:53) .
- ssh-add时候提示Could not open a connection to your authentication agent
- Can’t connect to MySQL server on ‘localhost’(10055) + Can not open connection + Could not execute query