EntityException in EntityFramework
Message
The underlying provider failed on Open.
Stack Trace
at System.Data.Entity.Core.EntityClient.EntityConnection.Open()
at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions)
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass41_0.<GetResults>b__0()
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0()
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
at Rock.Web.Cache.EntityCache`2.QueryDbWithContext(Int32 id, DbContext rockContext) in \Rock\Web\Cache\EntityCache.cs:line 625
at Rock.Web.Cache.EntityCache`2.QueryDb(Int32 id, DbContext rockContext) in \Rock\Web\Cache\EntityCache.cs:line 614
at Rock.Web.Cache.EntityCache`2.<>c__DisplayClass10_0.<Get>b__0() in \Rock\Web\Cache\EntityCache.cs:line 118
at Rock.Web.Cache.ItemCache`1.GetOrAddExisting(String key, Func`1 itemFactory, Func`1 keyFactory) in \Rock\Web\Cache\ItemCache.cs:line 108
at Rock.Web.Cache.ItemCache`1.GetOrAddExisting(Int32 key, Func`1 itemFactory, Func`1 keyFactory) in \Rock\Web\Cache\ItemCache.cs:line 86
at Rock.Web.Cache.EntityCache`2.Get(Int32 id, RockContext rockContext) in \Rock\Web\Cache\EntityCache.cs:line 116
at Rock.Web.RockRouteHandler.GetPageIdFromDataTokens(RequestContext routeRequestContext, SiteCache site, String& pageId, Int32& routeId, Boolean& isSiteMatch) in \Rock\Web\RockRouteHandler.cs:line 636
at Rock.Web.RockRouteHandler.System.Web.Routing.IRouteHandler.GetHttpHandler(RequestContext requestContext) in \Rock\Web\RockRouteHandler.cs:line 114
- SqlException in .Net SqlClient Data Provider
Message
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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Stack Trace
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext)
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass2_0.<Execute>b__0()
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
at System.Data.Entity.Core.EntityClient.EntityConnection.Open()