ASP.NET The system cannot find the file specified解决办法

时间:2021-10-21 20:15:07

ASP.NET The system cannot find the file specified解决办法

Server Error in '/' Application.


The system cannot find the file 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.ComponentModel.Win32Exception: The system cannot find the file specified


ASP.NET The system cannot find the file specified解决办法

 Insus.NET开发时,数据库是使用企业版,因此连接字符串就是写成默认的实现,而现在部署的数据库是\SQLEXPRESS。所以我们修改一下连接字符串:

ASP.NET The system cannot find the file specified解决办法

直接把127.0.0.1改为:“SVR1\SQLEXPRESS

 ASP.NET The system cannot find the file specified解决办法

 其实你还可以使用下面的Server字符串:

改为,使用英文字符点“.\SQLEXPRESS”:

ASP.NET The system cannot find the file specified解决办法

 或者使用“localhost\SQLEXPRESS”:
ASP.NET The system cannot find the file specified解决办法

 或者使用IP地址:
ASP.NET The system cannot find the file specified解决办法

 感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

原文链接:http://www.cnblogs.com/insus/p/5426975.html