Work at home, the program in the home computer running, there is an exception, or the first to see:
Server Error in '/' Application. The
system cannot find the file specified
Description: An unhandled exception occurred during, the execution of the current Web request. Review the stack trace for more information about the error and where it is 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 S Erver. The server was not found or is not accessible. Verify 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 is not accessible. Verify 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 is not accessible. Verify 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. version:4.6.1073.0
Read the above exception information, like SQL, try to start with a trip to SQL to see:
There is a problem, unable to start, immediately to see if MS SQL Server service has started?
After the service is restarted, the problem is solved ...
The system cannot find the file specified