Server Error in '/NCUC' Application.

Exception of type 'System.OutOfMemoryException' was thrown.

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.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

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:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.IO.MemoryStream.set_Capacity(Int32 value) +89
   System.IO.MemoryStream.EnsureCapacity(Int32 value) +90
   System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count) +326
   System.IO.BinaryWriter.Write(Byte[] buffer) +28
   ACOIS.Common.DataAccess.ReaderHelper.ReadBLOBToStream(IDataRecord reader, String columnName, Int32 buffersize, Stream stream) +204
   ACOIS.Common.EDM.EDocumentVersion.GetBits(Stream stream, Boolean closeStream, Boolean addWatermark) +370
   StarWebPortal.Handlers.DisplayEDocumentVersionHandler.ProcessRequest(HttpContext context) +1313
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +188
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


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