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:


Line 276:            if (retValue == null)
Line 277:            {
Line 278:                retValue = CustomFormManagement.GetFormValue(key, SessionObjects.SiteId).ToString();
Line 279:                CommonCaching.Write2Cache(cacheKey, retValue);
Line 280:            }

Source File: c:\inetpub\wwwroot\B2C\B2CSrb\App_Code\Common.cs    Line: 278

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.Linq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser user) +59
   System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe() +43
   System.Data.Linq.SqlClient.SqlProvider.InitializeProviderMode() +28
   System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +67
   System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) +51
   Sf.CmsB2C.Bal.B2C.CustomFormManagement.GetFormValue(String itemKey, Int32 siteId) in C:\ws\tv.b2c\tv.b2c-default-build\Library\Sf\Sf.CmsB2C.Bal\B2C\CustomFormManagement.cs:313
   Common.GetSettingByKey(String key) in c:\inetpub\wwwroot\B2C\B2CSrb\App_Code\Common.cs:278
   Common.GetBoolSettingByKey(String key) in c:\inetpub\wwwroot\B2C\B2CSrb\App_Code\Common.cs:1152
   ASP.global_asax..ctor() in c:\inetpub\wwwroot\B2C\B2CSrb\Global.asax:12

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +142
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +107
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1476
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +186
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +82
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +174
   System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext context) +50
   System.Web.HttpApplicationFactory.EnsureAppStartCalled(HttpContext context) +184
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +108
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +426


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