Skip to content

Instantly share code, notes, and snippets.

@yaodong
Last active August 18, 2020 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaodong/7b0b630d101327e3e8b2da8754b834b3 to your computer and use it in GitHub Desktop.
Save yaodong/7b0b630d101327e3e8b2da8754b834b3 to your computer and use it in GitHub Desktop.
Server Error in '/' Application.
The network path was not found
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 network path was not found
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 network path was not found]
[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.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +353
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +118
System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +268
System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +315
System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +128
System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +265
System.Data.SqlClient.SqlConnection.Open() +133
System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch(TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) +104
System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) +503
System.Data.Entity.SqlServer.<>c__DisplayClass1.<Execute>b__0() +18
System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Func`1 operation) +234
System.Data.Entity.Core.EntityClient.EntityConnection.Open() +321
[EntityException: The underlying provider failed on Open.]
System.Data.Entity.Core.EntityClient.EntityConnection.Open() +741
System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) +167
System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction(Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) +63
System.Data.Entity.Core.Objects.<>c__DisplayClass7.<GetResults>b__5() +203
System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Func`1 operation) +234
System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +357
System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0() +30
System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() +39
System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +209
PandaExpress.www.Repository.UserLocationRepository.GetLocationByIpAddress(Int64 ipAddress) in C:\Panda_USA\pandaexpress-com-2015\sln\PandaExpress.www.Repository\Repositories\UserLocationRepository.cs:71
PandaExpress.www.Service.UserLocationQueryService.GetLocationByIpAddress(Int64 ipAddress) in C:\Panda_USA\pandaexpress-com-2015\sln\PandaExpress.www.Service\Domain\Query\UserLocationQueryService.cs:26
PandaExpress.www.Service.Query.UserLocationViewModelQueryService.GetLocationByIpAddress(Int64 ipAddressInt) in C:\Panda_USA\pandaexpress-com-2015\sln\PandaExpress.www.Service\ViewModel\Query\UserLocationViewModelQueryService.cs:59
OrangeOnion.MVC.Controllers.NoAuthBaseController..ctor(IViewModelServices services) in C:\Panda_USA\pandaexpress-com-2015\sln\PandaExpress.www.MVC\Controllers\Base\NoAuthBaseController.cs:25
PandaExpress.www.MVC.Controllers.PublicContentPageController..ctor(IViewModelServices services) in C:\Panda_USA\pandaexpress-com-2015\sln\PandaExpress.www.MVC\Controllers\PublicContentPageController.cs:25
lambda_method(Closure , IBuilderContext ) +327
Microsoft.Practices.ObjectBuilder2.<>c__DisplayClass1.<GetBuildMethod>b__0(IBuilderContext context) +35
Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +359
Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +411
Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +460
[ResolutionFailedException: Resolution of the dependency failed, type = "PandaExpress.www.MVC.Controllers.PublicContentPageController", name = "(none)".
Exception occurred while: Calling constructor PandaExpress.www.MVC.Controllers.PublicContentPageController(OrangeOnion.ViewModel.Interfaces.IViewModelServices services).
Exception is: EntityException - The underlying provider failed on Open.
-----------------------------------------------
At the time of the exception, the container was:
Resolving PandaExpress.www.MVC.Controllers.PublicContentPageController,(none)
Calling constructor PandaExpress.www.MVC.Controllers.PublicContentPageController(OrangeOnion.ViewModel.Interfaces.IViewModelServices services)
]
Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +560
Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides) +20
System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +64
[InvalidOperationException: An error occurred when trying to create a controller of type 'PandaExpress.www.MVC.Controllers.PublicContentPageController'. Make sure that the controller has a parameterless public constructor.]
System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +245
System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +103
System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +268
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +77
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +970
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment