Click here to Skip to main content
15,179,246 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Guys
Im having a problem with a webservice.Im want to upload files bigger than 10mb, thus 11mb and im getting this error

System.Web.Services.Protocols.SoapException:
There was an exception running the extensions specified in the config file. --> Maximum request length exceeded.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse




I have changed my machine.config in this tag
<httpRuntime executionTimeout="90" maxRequestLength="15096" 
		useFullyQualifiedRedirectUrl="false"
		minFreeThreads="8" 
		minLocalRequestFreeThreads="4" 
		appRequestQueueLimit="100" enableVersionHeader="true"/>



as well as the web.config of the application.
Can you please share the solution or any idea.
M.Paige
Posted
Updated 4-Jun-10 3:27am
v4

So is this your web service that you have designed and have the source code for?

If it's just a service that you are consuming, then changing these values makes no difference since the restrictions are enforced by the config file of the service on the remote machine.
   
It's highly recommended to avoid sending entire file to the web server beacause the entire file is loaded into web server process memory.If you need to upload large files you need to capture them them chunk by chunk.Here's possible solution for your problem. :)
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900