Server Error in '/' Application.

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

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 open.

Source Error:


Line 79: 
Line 80: 
Line 81:                         <%=Event.GetText() %>
Line 82: 
Line 83:                         <asp:PlaceHolder ID="PlaceHolderEventFestivalData" runat="server">

Source File: c:\inetpub\wwwroot\Posazavi\posazavi.com\language\Event.aspx    Line: 81

Stack Trace:


[InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is open.]
   System.Data.SqlClient.SqlConnection.GetOpenConnection(String method) +65
   System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +94
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +309
   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) +199
   System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) +1741
   System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) +187
   System.Data.Linq.SqlClient.CompiledQuery.Execute(IProvider provider, Object[] arguments) +142
   System.Data.Linq.DeferredSourceFactory`1.ExecuteKeyQuery(Object[] keyValues) +557
   System.Data.Linq.DeferredSourceFactory`1.Execute(Object instance) +988
   System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source) +238
   System.Data.Linq.EntityRef`1.get_Entity() +82
   DAL.ServiceImage.get_RelatedServiceImage() in D:\Projekty\Posazavi\Core\DAL\Apollo.designer.cs:21075
   DAL.ServiceImage.GetUrl(Nullable`1 prefix) in D:\Projekty\Posazavi\Core\DAL\ServiceImage.cs:22
   DAL.Service.GetSmallImageRelativeUrl(Nullable`1 prefix) in D:\Projekty\Posazavi\Core\DAL\Service.cs:151
   Posazavi.UserControls.Event.NearestAccomodation.RenderAccomodation() in D:\Projekty\Posazavi\UserControls\UserControls\Event\NearestAccomodation.cs:75
   Posazavi.UserControls.Event.NearestAccomodation.Render(HtmlTextWriter writer) in D:\Projekty\Posazavi\UserControls\UserControls\Event\NearestAccomodation.cs:26
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   ASP.en_event_aspx.__RenderPlaceHolderEvent(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\Posazavi\posazavi.com\language\Event.aspx:81
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +271
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   ASP.masterpage_masterpage_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\d4ae933a\69e06d2\App_Web_zulqkbun.4.cs:0
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +271
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9490


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