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

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) +153
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +336
   SqlDependencyProcessDispatcher.StartWithDefault(String connectionString, String& server, DbConnectionPoolIdentity& identity, String& user, String& database, String& service, String appDomainKey, SqlDependencyPerAppDomainDispatcher dispatcher, Boolean& errorOccurred, Boolean& appDomainStart) +0
   System.Data.SqlClient.SqlDependency.Start(String connectionString, String queue, Boolean useDefaults) +1095
   System.Data.SqlClient.SqlDependency.Start(String connectionString) +13
   Insus.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) +9964625
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339
   System.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) +9946132
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
   System.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是否有启动?

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

时间: 2024-10-07 05:30:25

The system cannot find the file specified的相关文章

Nginx错误:nginx: [error] OpenEvent("Global\ngx_reload_6252") failed (2: The system cannot find the file specified)

执行nginx -s reload命令: nginx: [error] OpenEvent("Global\ngx_reload_6252") failed (2: The system cannot find the file specified) 错误原因: Nginx 尚未启动导致,执行 start nginx 命令开启Nginx

CMake error:System Error:No such file or directory CMake error:Could not open file for write in copy operation xxxx.ros_Config.cmake.tmp.

微型电脑或嵌入式与电脑还是有点不同的,在微型电脑上ros indigo 版本下利用catkin编译如果你遇到如下错误: CMake error:System Error:No such file or directory CMake error:Could not open file for write in copy operation xxxx.ros_Config.cmake.tmp. CMake error:at /opt/ros/indigo/share/catkin/cmake/ca

Method and system for implementing mandatory file access control in native discretionary access control environments

A method is provided for implementing a mandatory access control model in operating systems which natively use a discretionary access control scheme. A method for implementing mandatory access control in a system comprising a plurality of computers,

Fixed: The Windows Process Activation Service service terminated with the following error: The system cannot find the file specified

I'm not yet clear what I did, but I'm blogging it so it can be found if someone else has this issue. For whatever reason, last week both of my Vista 64-bit machines suddenly stopped being able to start IIS (Internet Information Server). The service j

SQL Server出现异常:The system cannot find the file specified

在查询一个DB中的Table时,SQL Server 抛出异常: The operating system returned error 2(The system cannot find the file specified.) to SQL Server during a read at offset 0x00000000204000 in file '\\ServerName\xxxx.ndf'. Additional messages in the SQL Server error log

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

ERROR: “System.Web.Mvc.Controller.File(string, string, string)”是一个“方法”,这在给定的上下文中无效 这是一个与Controller.File方法和System.IO.File类名称冲突的问题,只要完整输入明确类名就可解决. 比如:File.ReadAllText(file);   >改为>  System.IO.File.ReadAllText(file); 转载自:http://www.cnblogs.com/craig/ar

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

Unable to chmod /system/build.prop.: Read-only file system 只读文件系统 所以需要更改 使用下面的命令 mount -o remount,rw /dev/block/stl6 /system 设置完之后就恢复原来的状态 mount -o remount,ro /dev/block/stl6 /system

Linux System Programming note 8 ——File and Directory Management

1. The Stat Family #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> int stat(const char *path, struct stat *buf); int fstat(int fd, struct stat *buf); int lstat(const char *path, struct stat *buf); struct stat{ dev_t st_d

vmware Unable to open kernel device &quot;\\.\Global\vmx86&quot;: The system cannot find the file 的解决方法

https://communities.vmware.com/thread/245800?start=0&tstart=0 I have exactly same issue.  I start CMD as administrator then run  "net start vmx86".  Problem is solved,@ thank you.