找不到网络路径错误/MVC实体框架 [英] The network path was not found Error / MVC-Entity Framwork

查看:116
本文介绍了找不到网络路径错误/MVC实体框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"/"应用程序中的服务器错误.

Server Error in '/' Application.

找不到网络路径

描述:执行以下操作时发生未处理的异常当前的Web请求.请查看堆栈跟踪以获取更多信息有关错误及其在代码中起源的信息.

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.

异常详细信息:System.ComponentModel.Win32Exception:网络找不到路径

Exception Details: System.ComponentModel.Win32Exception: The network path was not found

源错误:

在执行过程中生成了未处理的异常当前的Web请求.有关原产地和位置的信息可以使用下面的异常堆栈跟踪来识别异常.

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

堆栈跟踪:

[Win32Exception(0x80004005):找不到网络路径]

[Win32Exception (0x80004005): The network path was not found]

[SqlException(0x80131904):与网络有关或与实例有关的建立与SQL Server的连接时发生错误.这找不到服务器或无法访问服务器.验证实例名称正确,并且该SQL Server配置为允许远程连接.(提供者:命名管道提供者,错误:40-无法打开与SQL Server的连接)]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException异常,布尔值breakConnection,动作1 wrapCloseInAction)+6573870 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObjectstateObj,布尔值调用者HasConnectionLock,布尔值asyncClose)+717

[SqlException (0x80131904): 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +6573870 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +717


你好

如您所见,我上面有数据库连接错误.但是我的连接字符串很好,因为我在不同的站点上使用了相同的连接字符串,并在IIS上发布了另一个端口.此外,我可以从sql读取数据,但不能插入任何内容.我在Google上搜索了很多时间,但是我没有工作.我想我缺少了什么.

I have database connection error above as you can see. But my connectionstring is fine, because i used same connectionstring on different site published another port on IIS. Furthermore, i can read data from sql but can't insert anything. I searched lots of time on google but i didnt work. I think i am missing something.

谢谢.

推荐答案

我解决了这个问题.问题是bin文件夹未更新.在构建项目并再次部署它之后,g修复问题.

i solved the problem. The problem is bin folder was not update. After build the project and deployed it againg, insert problem fixed.

这篇关于找不到网络路径错误/MVC实体框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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