473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

maxRequestLength not effective for increasing Upload size limitation

I'm developing a Web Service using DIME to download and upload files from
and to an IIS server. In order to increase the download filesize to
unlimited, I have the following block in my App.config and Web.config files:

<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>

The largest file I've downloaded is 70 meg and that's more than plenty for
me. However, I'm finding that on upload, if I attempt to upload greater than
4 meg, I get an error:

An unhandled exception of type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll
Additional information: There was an exception running the extensions
specified in the config file. --> Maximum request length exceeded.

This error occurs inside the client proxy on the this.invoke statements;

this.Invoke("PutFile", new object[] {
FileSpec,
Checkin,
AuthentiKey1});

My Web Service method is never even called.

How can I increase the upload size?

Thanks for your help!

- Joe Geretz -
Nov 23 '05 #1
2 14321
It looks like you're running into the ASP.NET limits. Setting the
<httpRuntime> element should take care of it.

For example, ten minutes and 400 mb it should look like this:
<httpRuntime executionTimeout="600" maxRequestLength="409600"/>

I have more details here:
http://spaces.msn.com/members/nra314159/Blog/cns!1pYM-YN5bjuKTPUnvGkZ1b_Q!165.entry

Thanks.

"Joseph Geretz" <jg*****@nospam.com> wrote in message
news:u8**************@tk2msftngp13.phx.gbl...
I'm developing a Web Service using DIME to download and upload files from
and to an IIS server. In order to increase the download filesize to
unlimited, I have the following block in my App.config and Web.config files:
<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>

The largest file I've downloaded is 70 meg and that's more than plenty for
me. However, I'm finding that on upload, if I attempt to upload greater than 4 meg, I get an error:

An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll
Additional information: There was an exception running the extensions
specified in the config file. --> Maximum request length exceeded.

This error occurs inside the client proxy on the this.invoke statements;

this.Invoke("PutFile", new object[] {
FileSpec,
Checkin,
AuthentiKey1});

My Web Service method is never even called.

How can I increase the upload size?

Thanks for your help!

- Joe Geretz -

Nov 23 '05 #2
Thanks Nate,

Yes, you are correct. Setting the httpRuntime maxRequestLength allows me to
increase the upload size past the 4 meg default. However, I am finding that
I cannot exceed 64 meg on upload. I've been discussion this issue on the
Microsoft forum at:

http://forums.microsoft.com/msdn/Sho...x?PostID=92989

The original post deals with the 4 meg limitation, but towards the middle of
the thread MiceaT jumps in reporting an absolute 64 meg limitation. I have
confirmed this limitation myself, so we are both observing the same
behavior.

If you could take a look at this thread and make a recommendation for us,
that would be most appreciated!

Thanks!

- Joe Geretz -

"Nathan Anderson [MSFT]" <na*********************@microsoft.com> wrote in
message news:43********@news.microsoft.com...
It looks like you're running into the ASP.NET limits. Setting the
<httpRuntime> element should take care of it.

For example, ten minutes and 400 mb it should look like this:
<httpRuntime executionTimeout="600" maxRequestLength="409600"/>

I have more details here:
http://spaces.msn.com/members/nra314159/Blog/cns!1pYM-YN5bjuKTPUnvGkZ1b_Q!165.entry

Thanks.

"Joseph Geretz" <jg*****@nospam.com> wrote in message
news:u8**************@tk2msftngp13.phx.gbl...
I'm developing a Web Service using DIME to download and upload files from
and to an IIS server. In order to increase the download filesize to
unlimited, I have the following block in my App.config and Web.config

files:

<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>

The largest file I've downloaded is 70 meg and that's more than plenty
for
me. However, I'm finding that on upload, if I attempt to upload greater

than
4 meg, I get an error:

An unhandled exception of type

'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll
Additional information: There was an exception running the extensions
specified in the config file. --> Maximum request length exceeded.

This error occurs inside the client proxy on the this.invoke statements;

this.Invoke("PutFile", new object[] {
FileSpec,
Checkin,
AuthentiKey1});

My Web Service method is never even called.

How can I increase the upload size?

Thanks for your help!

- Joe Geretz -


Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Martin | last post by:
I have an ASP form that uploads files to our server. When I upload small files, it works great. But larger files like (2.5mb), I get: Active Server Pages error 'ASP 0113' Script timed out I...
1
by: Brad | last post by:
I'd like to display the maxRequestLength value on a page, so users could see what the aprox current file upload size limit is. Can the value of maxRequestLength be determined at runtime? Can it...
2
by: Peter Row | last post by:
Hi, To allow users to upload files larger than 4MB in size I added: <httpRuntime maxRequestLength="102400" executionTimeout="600" /> ...to my web.config file. Fair enough this works fine....
25
by: moondaddy | last post by:
I have an application where users need to upload images and in my web.config file I have a setting like this: <httpRuntime maxRequestLength="512" /> Which restricts image larger than 500k from...
1
by: sam | last post by:
Hi, I have seen many posts about this problem and no resolution. I have set the maxRequestLength to 200K as I don't want anyone uploading files to the server greater than this size. I have...
2
by: Jay | last post by:
I have been trying to use maxRequestLength to stop users from uploading large files. It put this code in the web.config file: <httpRuntime maxRequestLength="128" /> --The upload works...
5
by: Matt Chubb | last post by:
I've searched the forums and the net and have not found a solution to this upload problem, any suggestions/help in this matter would be greatly appreciated. I'm trying to trap and display an...
1
by: Andy Stephens | last post by:
Hi all I'm developing a site where visitors can upload images (using the html file input control). As most webhosting companies set a monthly bandwidth limit I want to try and limit the size of...
0
by: nbSean | last post by:
I am working with a windows app that calls a web service to upload a file to a server. Had a problem with the file size, so I increased maxRequestLength in the web.config of the web service: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.