CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Resolved - File Upload in IIS 7 and Win 2008 Problem

Print topic Send  topic

Author Message
FLB

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

Hello,
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...

FLB
View profile  Send private message
navcan

Posts: 61
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:

<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4000000000" />
</requestFiltering>
</security>
</system.webServer>

OR

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
navcan

Posts: 61
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
FLB

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
navcan

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

Glad to help.

Appreciate if you please change the subject to RESOLVED.

Best,
navcan
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 http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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