CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> ASP

 Resolved - File Upload in IIS 7 and Win 2008 Problem

Print topic Send  topic

Author Message

Posts: 11
Posted: 10/06/2010, 8:34 AM

I have a problem with my file upload component.
I am in a Windows 2008 Server with IIS 7.
I need to upload pdf files in my app, and it works perfectly if the size of the pdf is less than 50 kb. When it is larger than that, I receive an error page with this text:
"Error occurred while initializing the upload component"

Can someone help me???

Thanks in advance...

View profile  Send private message

Posts: 58
Posted: 10/07/2010, 12:50 PM

It may be IIS limitation. To fix this try doing of the following:

Option 1: Add to your Web.config the following code, under the appropriate nodes:

<requestLimits maxAllowedContentLength="4000000000" />


Option 2: Go to IIS 7 control panel, under your website look for Request Filtering and then Edit features (on the right), then set Maximum allowed content length to your desired limit. This will add to your Web.config the lines as the lines from option 1.

Good Luck!!!
View profile  Send private message

Posts: 58
Posted: 10/07/2010, 1:11 PM

I just realized that your question was in ASP forum. Try this....

In IIS 7, click your site and expand it then click the ASP icon.

Expand the Limits Properties icon, and change the value in the “Maximum Requesting Entity Body Limit” to a value larger than 200000 (which is about 200kb). 4194304 would be about 4 Mb, 41943040 would be 40 Mb.


View profile  Send private message

Posts: 11
Posted: 10/08/2010, 3:35 AM

Thanks, navcan.
That last post worked great!!!
Problem solved.
Thanks a lot.
View profile  Send private message

Posts: 58
Posted: 10/08/2010, 11:41 AM

Glad to help.

Appreciate if you please change the subject to RESOLVED.

View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Internet Database

Visually create Web enabled database applications in minutes.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by  and YesSoftware, Inc.