Click here to Skip to main content
11,921,353 members (64,889 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#2.0 C#3.0 C# ASP.NET
Hi Guys
Im having a problem with a webservice.Im want to upload files bigger than 10mb, thus 11mb and im getting this error

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" 
		appRequestQueueLimit="100" enableVersionHeader="true"/>

as well as the web.config of the application.
Can you please share the solution or any idea.
Posted 4-Jun-10 3:15am
Edited 4-Jun-10 3:27am
Henry Minute224.8K
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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. Smile | :)

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

  Print Answers RSS
0 OriginalGriff 553
1 Dave Kreskowiak 245
2 phil.o 160
3 KrunalRohit 134
4 Sergey Alexandrovich Kryukov 132
0 OriginalGriff 6,951
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,171
3 George Jonsson 2,840
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web04 | 2.8.151120.1 | Last Updated 4 Jun 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100