[SqlException(0x80131904):建立与SQL Server的连接时发生与网络相关或特定于实例的错误 [英] [SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server

查看:990
本文介绍了[SqlException(0x80131904):建立与SQL Server的连接时发生与网络相关或特定于实例的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在连接到SQL数据库的本地版本。我已经创建了两个实体并希望连接到它们,但是当我尝试时,我在'/'应用程序中得到了"服务器错误",错误。

I'm connecting to a local version of the SQL database. I've created both entities and want to connect to them but when I try I've gotten a "Server Error in '/' Application," error.


到目前为止,我已经研究了错误,无法确定哪里开始寻找

So far I've research the error and cannot tie down where to even begin looking


Line 23:             //ViewBag.Message = message;
Line 24: 
Line 25:             var model = _db.Breweries.ToList();
Line 26: 
Line 27:             return View(model);



推荐答案

 

Hi, 

我们需要更多信息来帮助你。

We need a bit more info to help you out.

只是为了确认你在本地运行SQL Server?代码也在本地运行?

Just to confirm you are running SQL Server locally? And the code also runs locally?

可以您使用SSMS中的相同凭据进行连接?

Can you connect using the same credentials from SSMS?





这篇关于[SqlException(0x80131904):建立与SQL Server的连接时发生与网络相关或特定于实例的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆