| By Onkar Singh | Article Rating: |
|
| February 10, 2011 07:15 AM EST | Reads: |
4,861 |
So you deployed your brand-new ASP.NET web application to Azure cloud. All seems to be working perfectly until a user tried to upload large amount of data (approx. over 30MB) through your application UI. Unfortunately the operation failed. Surprisingly small file uploads works just fine.
To fix the problem you need to ensure that the following configuration is made in the web.config file.
<httpRuntime maxRequestLength="102400" executionTimeout="3600" />
Here value of maxRequestLength is in KB so that makes it 100MB. Having a bigger executionTimeOut value ensures that the file upload operation is not terminated prematurely by the web server.
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1024000000" />
</requestFiltering>
</security>
...
...
</system.webServer>
Here the value of maxAllowedContentLength is in bytes so that makes it 100MB again.
Restart the website and large data uploads should work just fine.
Read the original blog entry...
Published February 10, 2011 Reads 4,861
Copyright © 2011 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Onkar Singh
The author is the founder of 42Gears, developer of affordable Mobile Device Management tools.
- Eighteen Open Source Content Management Systems (Part 3)
- OpenNebula: Open Source Cloud Management
- The Java Courseware
- Book Excerpt: Java Application Architecture
- Amazon Partners with Eucalyptus
- IBM Puts All Its Experience in a Box
- EMC Buys Pivotal Labs
- Hot Tech Firms at the 2012 DoDIIS Conference
- IBM Buying Varicent Software
- Eucalyptus Gets $30 Million C Round
- HTC Licenses Intertrust Patents, Takes 20% of SyncTV
- Opscode Gets $19.5 Million Round
- Red Hat Executive Appointed to Technology Services Industry Association (TSIA) Support Services Advisory Board
- Eighteen Open Source Content Management Systems (Part 3)
- OpenNebula: Open Source Cloud Management
- The Java Courseware
- Book Excerpt: Java Application Architecture
- Amazon Partners with Eucalyptus
- IBM Puts All Its Experience in a Box
- EMC Buys Pivotal Labs
- Hot Tech Firms at the 2012 DoDIIS Conference
- IBM Buying Varicent Software
- Eucalyptus Gets $30 Million C Round
- HTC Licenses Intertrust Patents, Takes 20% of SyncTV
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- The i-Technology Right Stuff
- Creating Web Applications with the Eclipse Web Tools Project
- Eclipse Special: Remote Debugging Tomcat & JBoss Apps with Eclipse
- The Next Programming Models, RIAs and Composite Applications
- Where Are RIA Technologies Headed in 2008?
- SYS-CON Webcast: Eclipse IDE for Students, Useful Eclipse Tips & Tricks
- How to Bring Eclipse 3.1, J2SE 5.0, and Tomcat 5.0 Together
- Eclipse: The Story of Web Tools Platform 0.7
- The Top 250 Players in the Cloud Computing Ecosystem
- "Eclipse 3.0 is a Great Leap Forward," Says JDJ's Dudney
- Developing an Eclipse BIRT Report Item Extension




















