ITPub博客

首页 > IT职业 > IT职场 > 127.0.0.1SQLEXPRESS连接异常

127.0.0.1SQLEXPRESS连接异常

IT职场 作者:yuanxueming 时间:2021-09-09 09:48:32 0 删除 编辑

当你的数据库为SQLEXPRESS时,在程序的数据库连接字符串的服务Server使用127.0.0.1SQLEXPRESS时,如下:
图片描述


它会显示一异常:

Server Error in '/' Application.


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)

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: SQL Network  Interfaces, error: 26 - Error Locating Server/Instance Specified)

  

 图片描述

 



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2687/viewspace-2812793/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-07-25

  • 博文量
    89
  • 访问量
    818