Server Error in '/' Application.

There is already an open DataReader associated with this Connection which must be closed first.

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: MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first.

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:


[MySqlException (0x80004005): There is already an open DataReader associated with this Connection which must be closed first.]
   MySql.Data.MySqlClient.MySqlCommand.CheckState() +237
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +57
   MySql.Data.Entity.EFMySqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +43
   System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +478

[EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details.]
   System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +692
   System.Data.Objects.Internal.ObjectQueryExecutionPlan.Execute(ObjectContext context, ObjectParameterCollection parameterValues) +947
   System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +218
   System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +41
   System.Linq.Enumerable.First(IEnumerable`1 source) +215
   processoSPL.GetAutores(Int32 cod_proposicao, HtmlGenericControl p_autor, Boolean trocarBrPorVirgula, HtmlGenericControl div_autor, HtmlGenericControl tit_autor) +15034
   processoSPL.Page_Load(Object sender, EventArgs e) +9415
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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