MOPS 2007, Project.QueueUpdateProject, Maximum request length exce

F

Fabio

MOPS 2007, Project.QueueUpdateProject, Maximum request length exceeded

Hello world!

I get the exception below when invoking the QueueUpdateProject method of the
Project web service and passing a large ProjectDataSet object to it,
apparently larger than 4 MB.

The maxRequestLength attribute of the httpRuntime element is set to 51200
(50 MB) in all the web.config files on the file system.

Anyone any idea? Thank you in advance!

System.Web.Services.Protocols.SoapException:
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)
at com.fabioscagliola.PROJ2MOPS.Save(Project project, ProjectDataSet
projectDataSet, Guid projectGuid, QueueSystem queueSystem, List`1
deletedTaskGuidList)
at com.fabioscagliola.PROJ2MOPS.Do()
 
M

Mike

Are you exceeding the 1000 row limit for PSI datasets? I wonder if that
would cause this error. I'm actually looking for a good way to break up
large project plans to get around this issue myself.
 
F

Fabio

That might have been the case indeed. Anyway, in the end I worked around the
problem by avoiding useless updates, thus replacing code such as

taskRow.BeginEdit();
taskRow.TASK_NAME = taskName;
taskRow.EndEdit();

with

if (taskRow.TASK_NAME != taskName)
{
taskRow.BeginEdit();
taskRow.TASK_NAME = taskName;
taskRow.EndEdit();
}

That dramatically reduced the size of ProjectDataSet objects (measured by
writing the object as XML using the WriteXml method) as well as of course the
number of updated rows.

Hope this helps!
 
W

wayne

I have the same problem on updating resources, But i don't understander you
solution. Can you give me some idea?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top