Server Error in '/' Application.

Attempted to read past the end of the stream.

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.IO.EndOfStreamException: Attempted to read past the end of the stream.

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:


[EndOfStreamException: Attempted to read past the end of the stream.]
   MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count) +112
   MySql.Data.MySqlClient.MySqlStream.LoadPacket() +72

[MySqlException (0x80004005): Reading from the stream has failed.]
   MySql.Data.MySqlClient.MySqlStream.LoadPacket() +324
   MySql.Data.MySqlClient.MySqlStream.ReadPacket() +18
   MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId) +357
   MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId) +113
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +130

[MySqlException (0x80004005): Fatal error encountered attempting to read the resultset.]
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +495
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +1138

[MySqlException (0x80004005): Fatal error encountered during command execution.]
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +1660
   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
   processoSPL.GetOficios(Int32 id, Object proposicao) +5365
   processoSPL.Page_Load(Object sender, EventArgs e) +17303
   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