The network path was not found



[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) +345
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +156
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +258
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +312
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +202
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +413
   System.Data.SqlClient.SqlConnection.Open() +128
   System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch(TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) +98
   System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) +494
   System.Data.Entity.SqlServer.<>c__DisplayClass2_0.<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() +738
   System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) +166
   System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction(Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) +63
   System.Data.Entity.Core.Objects.<>c__DisplayClass41_0.<GetResults>b__0() +211
   System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Func`1 operation) +234
   System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +354
   System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0() +30
   System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() +39
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +436
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +70
   Btolat.Data.<>c__DisplayClass11_0.<GetAllAsync>g__getAll|0() +295
   Btolat.Common.Caching.MemoryCacheManagerNew.Get(CacheKey key, Func`1 acquire) +2521
   Btolat.Data.EfRepository`1.GetEntities(Func`1 getAll, Func`2 getCacheKey) +488
   Btolat.Data.EfRepository`1.GetAllAsync(Func`2 func, Func`2 getCacheKey, Boolean includeDeleted) +326
   Btolat.Services.Settings.SettingService.GetAllSettingsAsync() +498
   Btolat.Services.Settings.SettingService.<GetAllSettingsDictionaryAsync>b__6_0() +75
   Btolat.Common.Caching.MemoryCacheManagerNew.Get(CacheKey key, Func`1 acquire) +2521
   Btolat.Services.Settings.SettingService.GetAllSettingsDictionaryAsync() +164
   Btolat.Services.Settings.SettingService.GetSettingByKeyAsync(String key, T defaultValue, Boolean loadSharedValueIfNotFound) +128
   Btolat.Services.Settings.SettingService.LoadSettingAsync(Type type) +434
   Btolat.Services.Settings.SettingService.LoadSettingAsync() +138
   Btolat.Web.Framework.<>c__1`1.<BuildRegistration>b__1_0(IComponentContext c, IEnumerable`1 p) +182
   Autofac.Builder.<>c__DisplayClass0_0`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p) +18
   Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +50
   Autofac.Core.Activators.Delegate.DelegateActivator.<ConfigurePipeline>b__2_0(ResolveRequestContext context, Action`1 next) +43
   Autofac.Core.Resolving.Pipeline.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext context) +227
   Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) +25
   Autofac.Core.Resolving.Pipeline.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext context) +227
   Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) +36

[DependencyResolutionException: An exception was thrown while activating Btolat.DeskTop.Controllers.VideoController -> Btolat.DeskTop.Factories.VideoModelFactory -> Btolat.Services.Accounts.SocialAccountService -> λ:Btolat.Common.Domain.Customers.CustomerSettings.]
   Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) +211
   Autofac.Core.Resolving.Pipeline.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext context) +227
   Autofac.Core.Resolving.Pipeline.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext context) +227
   Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) +935
   Autofac.Core.Resolving.Pipeline.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext context) +227
   Autofac.Core.Resolving.Pipeline.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext context) +227
   Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) +530
   Autofac.Core.Resolving.Pipeline.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext context) +227
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest& request) +649
   Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest& request) +463
   Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest& request) +139
   Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) +223
   Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext context, Service service, IEnumerable`1 parameters) +70
   Autofac.Integration.Mvc.AutofacDependencyResolver.GetService(Type serviceType) +95
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +61

[InvalidOperationException: An error occurred when trying to create a controller of type 'Btolat.DeskTop.Controllers.VideoController'. Make sure that the controller has a parameterless public constructor.]
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +242
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +262
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +77
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1020
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128

Leave a Comment