Server Error in '/' Application.

The maximum message size quota for incoming messages (67108864) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

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.ServiceModel.QuotaExceededException: The maximum message size quota for incoming messages (67108864) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

Source Error:


Line 223:            'HttpContext.Current.Trace.Warn("GetFileStream Error", ex.Message)
Line 224:            'File.WriteAllText(Server.MapPath("/error/error.txt"), ex.Message)
Line 225:            Throw ex
Line 226:            
Line 227:        End Try

Source File: C:\SRC\IRRC\view_doc.ashx    Line: 225

Stack Trace:


[QuotaExceededException: The maximum message size quota for incoming messages (67108864) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.]

[CommunicationException: The maximum message size quota for incoming messages (67108864) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.]
   System.ServiceModel.Channels.MaxMessageSizeStream.PrepareRead(Int32 bytesToRead) +7324648
   System.ServiceModel.Channels.MaxMessageSizeStream.Read(Byte[] buffer, Int32 offset, Int32 count) +27
   System.ServiceModel.Channels.DelegatingStream.Read(Byte[] buffer, Int32 offset, Int32 count) +20
   System.ServiceModel.Channels.DetectEofStream.Read(Byte[] buffer, Int32 offset, Int32 count) +18
   System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count) +251
   System.Xml.EncodingStreamWrapper.Read(Byte[] buffer, Int32 offset, Int32 count) +107
   System.Xml.XmlBufferReader.TryEnsureBytes(Int32 count) +158
   System.Xml.XmlBufferReader.GetBuffer(Int32 count, Int32& offset, Int32& offsetMax) +53
   System.Xml.XmlUTF8TextReader.ReadText() +304
   System.Xml.XmlUTF8TextReader.Read() +366
   System.Xml.XmlBaseReader.MoveToContent() +30
   System.ServiceModel.Dispatcher.MessageBodyStream.Read(Byte[] buffer, Int32 offset, Int32 count) +278

[IOException: An exception has been thrown when reading the stream.]
   view_doc.GetFileStream(DocuShareSearch myDocShare) in C:\SRC\IRRC\view_doc.ashx:225
   view_doc.ProcessRequest(HttpContext context) in C:\SRC\IRRC\view_doc.ashx:78
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171


Version Information: Microsoft .NET Framework Version:2.0.50727.4963; ASP.NET Version:2.0.50727.4971