- 时间:2021-06-24 03:23 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:ASP.NET The system cannot find the file specified解决办法
[b]ASP.NET The system cannot find the file specified解决办法[/b]
[b]Server Error in '/' Application.[/b]
[i]The system cannot find the file specified[/i]
[b]Description: [/b]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.
[b]Exception Details: [/b]System.ComponentModel.Win32Exception: The system cannot find the file specified
[url=http://img.1sucai.cn/uploads/article/2018010710/20180107100117_0_95352.png][img]http://img.1sucai.cn/uploads/article/2018010710/20180107100117_0_95352.png[/img]
[/url]
Insus.NET开发时,数据库是使用企业版,因此连接字符串就是写成默认的实现,而现在部署的数据库是SQLEXPRESS。所以我们修改一下连接字符串:
[url=http://img.1sucai.cn/uploads/article/2018010710/20180107100117_1_97900.png][img]http://img.1sucai.cn/uploads/article/2018010710/20180107100117_1_97900.png[/img]
[/url]
直接把127.0.0.1改为:“[b]SVR1SQLEXPRESS[/b]”
[url=http://img.1sucai.cn/uploads/article/2018010710/20180107100117_2_34746.png][img]http://img.1sucai.cn/uploads/article/2018010710/20180107100117_2_34746.png[/img]
[/url]
其实你还可以使用下面的Server字符串:
改为,使用英文字符点“[b].SQLEXPRESS[/b]”:
[url=http://img.1sucai.cn/uploads/article/2018010710/20180107100118_3_34886.png][img]http://img.1sucai.cn/uploads/article/2018010710/20180107100118_3_34886.png[/img]
[/url]
或者使用“[b]localhostSQLEXPRESS[/b]”:
[url=http://img.1sucai.cn/uploads/article/2018010710/20180107100118_4_7840.png][img]http://img.1sucai.cn/uploads/article/2018010710/20180107100118_4_7840.png[/img]
[/url]
或者使用IP地址:
[url=http://img.1sucai.cn/uploads/article/2018010710/20180107100120_5_91546.png][img]http://img.1sucai.cn/uploads/article/2018010710/20180107100120_5_91546.png[/img]
[/url]
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!