Server Error in '/' Application.

ExecuteReader requires an open and available Connection. The connection's current state is closed.

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.InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.

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:


[InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.]
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +676
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +155
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +83
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +198
   System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch(TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) +104
   System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext) +499
   System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +36

[EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details.]
   System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +125
   System.Data.Entity.Core.Objects.ObjectContext.CreateFunctionObjectResult(EntityCommand entityCommand, ReadOnlyCollection`1 entitySets, EdmType[] edmTypes, ExecutionOptions executionOptions) +845
   System.Data.Entity.Core.Objects.<>c__DisplayClass47`1.<ExecuteFunction>b__46() +105
   System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction(Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) +459
   System.Data.Entity.Core.Objects.<>c__DisplayClass47`1.<ExecuteFunction>b__45() +213
   System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Func`1 operation) +234
   System.Data.Entity.Core.Objects.ObjectContext.ExecuteFunction(String functionName, ExecutionOptions executionOptions, ObjectParameter[] parameters) +868
   OurGovt.ResourceAPI.Data.OurGovernmentEntities.Content_GetByUrl(String absoluteUrl) +331
   OurGovt.ResourceAPI.ContentResource.Get(OurGovernmentEntities dc, String key) +88
   OurGovt.ResourceAPI.ResourceService`1.Get(String key) +746

[Exception: 'Get' method missing or incorrect signature in class ContentResource - message: ExecuteReader requires an open and available Connection. The connection's current state is closed.]
   OurGovt.ResourceAPI.ResourceService`1.Get(String key) +1610
   OurGovt.ResourceAPI.ResourceRepository`1.Reload(String key) +236
   OurGovt.ResourceAPI.ResourceRepository`1.get_Item(String key) +137
   OurGovt.Web.UI.PageContentResource.Get(HttpContext context, String httpContextKey) +242
   OurGovt.Web.UI.WebControls.ContentPageBase.get_PageContent() +98
   OurGovt.Web.UI.WebControls.ContentPageBase.SaveControlState() +85
   OurGovt.Web.UI.WebControls.ResourcePageBase`1.SaveControlState() +59
   System.Web.UI.Control.SaveControlStateInternal() +23
   System.Web.UI.Page.SaveAllState() +360
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7905


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