[SqlException(0x80131904):建立与SQL Server的连接时发生与网络相关或特定于实例的错误

编程入门 行业动态 更新时间:2024-10-26 14:27:47
本文介绍了[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的连接时发生与网络相关或特定于实例的错误

本文发布于:2023-11-02 13:42:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1552545.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:实例   生与   错误   网络   SqlException

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!