.NET Framework Bookmark and Share   
 index > ASMX Web Services and XML Serialization > WSE 3.0: can't set maxRequestLength in web.config
 

WSE 3.0: can't set maxRequestLength in web.config

Hi

I'm making a web service to send large amounts of data by using MTOM. I read this help from ms:

http://msdn.microsoft.com/en-us/library/aa529330.aspx

There you can read you must put the following section in web.config if you want to enlarge the size limit in the message:

<system.web>
<httpRuntime maxMessageLength="409600" executionTimeoutInSeconds="300"/>
</system.web>

I can't set both maxMessageLength and executionTimeoutInSeconds neither in web.confg.. vs2005 shows 'Attribute 'maxMessageLength' not recognized'..

I installed WSE 3.0 correctly and I applied the WSE settings as you can read in the help.. in the web.config.

I need to change any other setting to enable maxMessageLength ini the web.config?.

Thanks in advance.
Borja Serrano
Were you aware that WSE is obsolete? You should really try this with WCF.
John Saunders
WCF is Web Services. They are not two separate things.
Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
Use File->New Project to create Web Service Projects
John Saunders
Hi John, thanks for your reply

I agree, it would be better to use wcf, but i can just develop in vs05, framework 2.0.

I installed WSE 3.0 correctly and I enable all the WSE 3.0 settings on my web.config, but I can't set 'maxMessageLength' properties in that config.

Any other advice?
Borja Serrano

You can use google to search for other answers

Custom Search

More Threads

• Permissions for calling unmanaged DLL in ASP.NET web service on win2k
• are you missing a using directive or an assembly reference?
• Web Service Localization
• soapreceiver problem
• calling web service method without proxy
• Fix the problem that nuSOAP in PHP can not pass parameters to Webservices in ASP.NET
• XML encryption
• HELP: WebService Behavior with HTC or Alternatives
• Suggest Books on WSE
• How to write a file from a IIS web server to a remote host server