在家工作,程序在家里的电脑运行时,出现一个异常,还是第一见到:

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

Source Error:

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.

Stack Trace:

[Win32Exception (0x80004005): The system cannot find the file specified][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.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +153System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +336SqlDependencyProcessDispatcher.StartWithDefault(String connectionString, String& server, DbConnectionPoolIdentity& identity, String& user, String& database, String& service, String appDomainKey, SqlDependencyPerAppDomainDispatcher dispatcher, Boolean& errorOccurred, Boolean& appDomainStart) +0System.Data.SqlClient.SqlDependency.Start(String connectionString, String queue, Boolean useDefaults) +1095System.Data.SqlClient.SqlDependency.Start(String connectionString) +13Insus.NET.MvcApplication.Application_Start() in D:\Projects\MvcExercise\MvcExercise\Global.asax.cs:19[HttpException (0x80004005): 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.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9964625System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296[HttpException (0x80004005): 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.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9946132System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1073.0

仔细阅读上面的异常信息,像是与SQL有关,试先启动与远行SQL看看:

果然有问题,无法启动,马上去查看MS SQL Server的Service是否有启动?

把服务启之后,问题随之解决......

The system cannot find the file specified相关推荐

  1. nginx.pid failed (2: The system cannot find the file specified

    nginx.pid" failed (2: The system cannot find the file specified nginx -c conf/nginx.conf nginx常 ...

  2. CreateProcess failed: The system cannot find the file specified.

    在此网站https://www.cnblogs.com/sandeepin/p/ninja.html?ivk_sa=1024320u学习ninja构建项目时 将GCC = D:\MinGW\bin\g ...

  3. [error] OpenEvent(Global\ngx_stop_25184) failed (2: The system cannot find the file specified)

    windows下nginx报错!  nginx: [error] OpenEvent("Global\ngx_reload_23212") failed (2: The syste ...

  4. dalvik.system.PathClassLoader[DexPathList[[zip file /data/app/comda.xfdsafda.activdity-1/base.apk]

    下面是出错的日志信息 10:42:25.638 2656-2656/comda.xfdsafda.activdity E/AndroidRuntime: FATAL EXCEPTION: mainPr ...

  5. ERROR: “System.Web.Mvc.Controller.File(string, string, string)”是一个“方法”

    ERROR: "System.Web.Mvc.Controller.File(string, string, string)"是一个"方法",这在给定的上下文中 ...

  6. CocosCreator原生开发 dalvik.system.PathClassLoader[DexPathList[[zip file couldn‘t find “libcocos2djs.so“

    android studio 运行报错 dalvik.system.PathClassLoader[DexPathList[[zip file - couldn't find "libcoc ...

  7. Unable to chmod /system/build.prop.: Read-only file system

    Unable to chmod /system/build.prop.: Read-only file system 只读文件系统 所以需要更改 使用下面的命令 mount -o remount,rw ...

  8. java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file /data/app/com.

    错误提示: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/dat ...

  9. CMake error:System Error:No such file or directory CMake error:Could not open file for write in copy

    错误描述: CMake error:System Error:No such file or directory CMake error:Could not open file for write i ...

最新文章

  1. 我问占小狼到底什么是面向对象编程?他转头就走。
  2. Android图片处理
  3. 给计算机图片文件夹加密码,电脑文件夹设置密码的方法是什么【图文】
  4. 对话系统(二)-普通神经网络
  5. Mysql8 NDB集群二进制方式免安装配置图解
  6. 制作自己的特色PE----Mr.Zhang
  7. TensorFlow中文社区
  8. android开发访问百度搜索,Android开发如何添加搜索功能———大神求救啊
  9. java7723魂斗罗2_魂斗罗2013-丛林之谜
  10. 每日一课 | 数据分析的本质是什么?
  11. 学习之Java(方法)
  12. 大数据高级开发工程师——Spark学习笔记(6)
  13. CST学习笔记1--------CST基础建模
  14. vue实现搜索框搜索新增_基于Vue.js实现简单搜索框
  15. android TV端如何读取微信网页版二维码显示生成一张图片
  16. 进制与IP地址的转换
  17. 为别人着想,是最大的利己
  18. 新用户,玩「聊天宝」完整过程(亮点槽点)
  19. 莱阳计算机类专科大学,莱阳市两所高校介绍
  20. 去中心化,p2p,网络穿透一起搞定丨NAT原理丨网络穿透实战演示

热门文章

  1. 判断页面元素存在与否
  2. 【C++】浅析析构函数(基类中)为什么要写成虚基类?
  3. c语言中int和指针和字符所占字节
  4. Asp.net中多项目共享Session
  5. 家庭局域网开启AP隔离利用无线路由器互连
  6. android 耳机红外线,红外线耳机制作方法
  7. python控制电机_利用树莓派控制步进电机——Python语言
  8. python爬虫网络请求超时_6、web爬虫讲解2—urllib库爬虫—基础使用—超时设置—自动模拟http请求...
  9. java collections_Java集合基础的详细介绍(二)
  10. umi脚手架搭建的项目_15天零成本搭建静态博客,托管于Github Page