Max size of project dataset
I am working on an update process for project fields and task fields, which was running fine for some but not for others. I get the following exception when I update the project dataset. System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. ---> System.Web.HttpException: Maximum request length exceeded. at System.Web.HttpRequest.GetEntireRawContent() at System.Web.HttpRequest.get_InputStream() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() --- End of inner exception stack trace --- at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) What I have discovered researching this exception is it happens because of the size of the dataset object, it throws this exception when it exceeds 4MB. I have also verified this by writing the xml of the object into a text file and looking at its size. I need help figuring out this one. Thank you in advance Sorry wrong place for this question.
July 25th, 2011 12:48pm

Are you using a WCF Service for your project i am just guessing it based on the soap exception if so then you can specify the buffer size <bindings> <netNamedPipeBinding> <binding name="IPCWindowsSecurity" maxBufferPoolSize="965536" maxBufferSize="965536" maxReceivedMessageSize="965536"> <readerQuotas maxStringContentLength="965536" /> <security mode="Transport"> <transport protectionLevel="EncryptAndSign" /> </security> </binding> </netNamedPipeBinding> <wsHttpBinding> <binding name="httpBinding" maxBufferPoolSize="965536" maxReceivedMessageSize="965536"> <readerQuotas maxStringContentLength="965536" /> </binding> </wsHttpBinding> </bindings> -------------------------------------------------------- Surender Singh Bhadauria
Free Windows Admin Tool Kit Click here and download it now
July 25th, 2011 2:02pm

A similar thread http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/70ced533-23bb-458d-b50e-22fb7eccef47/-------------------------------------------------------- Surender Singh Bhadauria
July 25th, 2011 2:04pm

Hi z402790, By default, ASP.NET limits the size of files that can be uploaded to a server to 4 MB. If the size of the file is bigger than the allowed upload size, we will get this error message. In order to avoid this issue, we can change the default value of the maxRequestLength element in the web.config file for the Report Server. Please refer to the steps achieve this: 1. Navigate to web.config file: <drive:> Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\web.config. 2. Backup the web.config file before you modify it, open the web.config file with Notepad format. 3. Change the <httpRuntime executionTimeout="9000" /> tag like this: <httpRuntime executionTimeout="9000" maxRequestLength = "40960" /> By the way, there is a similar thread about this issue, please see: http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/7475cd39-8d9e-4e33-8812-3b13185d070e/ Regards, Bin Long Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Free Windows Admin Tool Kit Click here and download it now
August 27th, 2011 9:55pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics