By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,760 Members | 1,585 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,760 IT Pros & Developers. It's quick & easy.

request exceeds the limit

P: n/a
Hi
I was trying to call the webservice of MS Project server (ProjectCreate
interface of PDS) to create a new project. It works fine when the input XML
is small with a few task and allocations. It gives an error " The size of
the request exceeds the limit allowed by the server " when I have a lot of
tasks to be created.

How do I increase this size limit for the webservice.

Regards,
Praveen
Nov 23 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Hi Praveen,

To change max request size for a web service, we can set maxRequestLength
in file web.config or machine.config for example:

<configuration>
<system.web>
<httpRuntime maxRequestLength="8000"

Its default value is 4096 (4M).

However, since this is a MS Project related problem, I suggest you may also
post this question in MS Project server related group for confirmation.

Luke

Nov 23 '05 #2

P: n/a
Hi
Since MS Project does not use asp.net for PDS webservice, there won't be any
web.config file. I have installed it on windows 2003 server so is there any
thing that I can set in the IIS level.

As you advised I will post this to MS Project news group also but I believe
that the solution might not be pertaining to MS Project.

Thanks,
Praveen


"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:IH**************@TK2MSFTNGXA01.phx.gbl...
Hi Praveen,

To change max request size for a web service, we can set maxRequestLength
in file web.config or machine.config for example:

<configuration>
<system.web>
<httpRuntime maxRequestLength="8000"

Its default value is 4096 (4M).

However, since this is a MS Project related problem, I suggest you may
also
post this question in MS Project server related group for confirmation.

Luke

Nov 23 '05 #3

P: n/a
Hi Praveen,

I have few knowledge on MS Project server. As I know, Project Data Service
(PDS) is built on ASP.NET Web Service and it can have a web.config or we
even can change the value in machine.config so that it can work for all web
application on the server. (Maybe I am wrong, I am not a professional in MS
Project server. But for all ASP.NET web service, it is the only way to
change request size limitation). Anyway, I still suggest you post this
question on a MS Project server group to see if we can get same answer, or
you can try to change it in machine.config and restart the server to see if
it can help. If I am wrong, please feel free to correct me.

Luke
Nov 23 '05 #4

P: n/a
With further research, I found I am wrong at "Project Data Service (PDS) is
built on ASP.NET Web Service and it can have a web.config", but its web
service should built on ASP.NET Web Service and it can have a web.config.

Luke
Nov 23 '05 #5

P: n/a
Hi,
To refer to a webservice made with asp.net we generally refer to .asmx file.
But for PDS I am referring a .wsdl file which I believe is created using the
soap development kit. so possibly the PDS webservice may not have been
written with asp.net.

I increased the maxRequestLength to 40 MB in the machine.config file which
is in the dotnet runtime dir. For sure the soap payload in my test case is
only about 1 MB. Unfortunately this change did not help.

If the PDS webservice is not written in dotnet how can I increase the
acceptable request size.

Regards,
Praveen
"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:$n***************@TK2MSFTNGXA01.phx.gbl...
With further research, I found I am wrong at "Project Data Service (PDS)
is
built on ASP.NET Web Service and it can have a web.config", but its web
service should built on ASP.NET Web Service and it can have a web.config.

Luke

Nov 23 '05 #6

P: n/a
Hi
PDS is using webservice developed with Soap Development Toolkit so id does
not have a web.config file

There is a registry setting
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSOAP\30\S OAPISAP"
where we can increase the MaxPostSize to the desired limit.

This helped resolve the issue.

Regards,
Praveen
"Praveen Chandra" <pr*****@newsgroup.nospam> wrote in message
news:eL*************@TK2MSFTNGP10.phx.gbl...
Hi,
To refer to a webservice made with asp.net we generally refer to .asmx
file. But for PDS I am referring a .wsdl file which I believe is created
using the soap development kit. so possibly the PDS webservice may not
have been written with asp.net.

I increased the maxRequestLength to 40 MB in the machine.config file which
is in the dotnet runtime dir. For sure the soap payload in my test case is
only about 1 MB. Unfortunately this change did not help.

If the PDS webservice is not written in dotnet how can I increase the
acceptable request size.

Regards,
Praveen
"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:$n***************@TK2MSFTNGXA01.phx.gbl...
With further research, I found I am wrong at "Project Data Service (PDS)
is
built on ASP.NET Web Service and it can have a web.config", but its web
service should built on ASP.NET Web Service and it can have a web.config.

Luke


Nov 23 '05 #7

P: n/a
Thank you for information.

Luke
Nov 23 '05 #8

P: n/a
There is also an IIS 6 metabase property setting which handles this, as well,
called "AspMaxRequestEntityAllowed".
Nov 23 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.