Server Error in '/' Application.

Invalid attempt to read when no data is present.

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: Invalid attempt to read when no data is present.

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: Invalid attempt to read when no data is present.]
   System.Data.SqlClient.SqlDataReader.GetValue(Int32 i) +118
   System.Data.SqlClient.SqlDataReader.get_Item(String name) +27
   Zahia.Website.Framework.Components.DataProvider.PopulateWorkshopEventFromIDataReader(IDataReader reader) in C:\Daniel\zahia-website\Zahia.Website.Framework\DataProvider.cs:797
   Zahia.Website.SqlProvider.WebSqlProvider.GetWorkshopEvent(Int32 id) +186
   Zahia.Website.Framework.Workshops.GetEvent(Int32 id) in C:\Daniel\zahia-website\Zahia.Website.Framework\Workshops.cs:141
   Zahia.Website.Framework.Content.RegistrationForm.OnLoad(EventArgs e) in C:\Daniel\zahia-website\Zahia.Website.Framework\Controls\Content\RegistrationForm.cs:96
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8806; ASP.NET Version:2.0.50727.8762