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

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

直接把127.0.0.1改为:“SVR1\SQLEXPRESS

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

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

 或者使用“localhost\SQLEXPRESS”:

 或者使用IP地址:

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

您可能感兴趣的文章:

  • asp.net gridview 72般绝技
  • JQuery.uploadify 上传文件插件的使用详解 for ASP.NET
  • asp.net生成Excel并导出下载五种实现方法
  • ASP.NET中的几种弹出框提示基本实现方法
  • ASP.NET对路径”xxxxx”的访问被拒绝的解决方法小结
  • asp.net获取当前网址url的各种属性(文件名、参数、域名 等)的代码
  • asp.net cookie的操作,写入、读取与操作
  • asp.net 面试 笔试题目[附答案]
  • 使用jQuery向asp.net Mvc传递复杂json数据-ModelBinder篇
  • asp.net 验证码生成和刷新及验证
声明:本站(华域联盟www.cnhackhy.com)所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。