The size of the request exceeds the limit allowed by the server

Posted on 2006-04-13
Last Modified: 2012-08-13
I'm sending a large xml request to a Project Server 2003 web service (PDS), but I am getting the following error:

System.Web.Services.Protocols.SoapHeaderException: The size of the request exceeds the limit allowed by the server.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCal
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at ProjectEMTS.PDSService.PDS.SoapXMLRequest(String sCookie, String sXML) in C:\Documents and Settings\clementc\My Documents\Visual Studio Projects\ProjectEM
TS\ProjectEMTS\Web References\PDSService\Reference.cs:line 39
   at ProjectEMTS.ProjectData.SendXMLRequest(StringWriter sWriter) in c:\documents and settings\clementc\my documents\visual studio projects\projectemts\project
emts\projectdata.cs:line 135

I have already maximized HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / MSSOAP / 30 / SOAPISAP / MaxPostSize, but still getting the error. I'm sure the size of the request is not even close to the value I set in the registry.

Any ideas of what else could be causing this error?


Question by:ChrisClement
    LVL 14

    Expert Comment

    I believe your problem is set in the web.config of the webservice if it has one.   Try looking at this article to see if this helps.

    Here is an article talking about the problem and how to solve it. The quickest thing to try is to update the webconfig to use a larger maxRequestLength value.   See the article for more detail on this.  


    Author Comment

    Thanks, but we figured the problem out right after I posted this.  We changed the registry setting and restarted IIS, but for whatever reason the change still did not take affect until we rebooted the server.  What a pain.

    Thanks for the response tho.

    Accepted Solution

    Closed, 500 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now