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

URL

http://files.dostal-bozp.cz/GetFile.aspx?id=391

Stack trace

   at System.Data.SqlClient.SqlConnection.GetOpenConnection(String method)
   at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command)
   at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteScalar()
   at DataSource.ExecScalar(String command, Object[] pars) in e:\Web\sites\obe0000023865\wwwroot\fileserver\App_Code\Database\General\DataSource.cs:line 50
   at DbFile.CanRead(String file, String user) in e:\Web\sites\obe0000023865\wwwroot\fileserver\App_Code\Database\Specialized\DbFile.cs:line 74
   at GetFile.Page_Load(Object sender, EventArgs e) in e:\Web\sites\obe0000023865\wwwroot\fileserver\GetFile.aspx.cs:line 21
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at StdPage.OnLoad(EventArgs e) in e:\Web\sites\obe0000023865\wwwroot\fileserver\App_Code\Pages\StdPage.cs:line 34
   at FormControlPage.OnLoad(EventArgs e) in e:\Web\sites\obe0000023865\wwwroot\fileserver\App_Code\Pages\FormControlPage.cs:line 34
   at FSPage.OnLoad(EventArgs e) in e:\Web\sites\obe0000023865\wwwroot\fileserver\App_Code\Pages\FSPage.cs:line 28
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Original site

System.Data.SqlClient.SqlInternalConnection GetOpenConnection(System.String)

Source

System.Data

Application status report

Nothing to report

Session content

KeyValue

Post content

KeyValue

Application log