码迷,mamicode.com
首页 > 其他好文 > 详细

遇到的异常处理

时间:2016-06-18 18:24:41      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:

  • A first chance exception of type ‘System.Data.Entity.Core.EntityException‘ occurred in EntityFramework.dll

Additional information: The underlying provider failed on Open.

InnerException: {"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)"}

StackTrace: at System.Data.Entity.Core.EntityClient.EntityConnection.Open()

没有连VPN,数据库连接失败

 

遇到的异常处理

标签:

原文地址:http://www.cnblogs.com/chrisghb8812/p/5596415.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!