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
|
|
|
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!!!
|
|
|
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.
|
|
|
FLB
Posts: 11
|
Posted: 10/08/2010, 3:35 AM |
|
Thanks, navcan.
That last post worked great!!!
Problem solved.
Thanks a lot.
|
|
|
navcan
Posts: 61
|
Posted: 10/08/2010, 11:41 AM |
|
Glad to help.
Appreciate if you please change the subject to RESOLVED.
Best,
navcan
|
|
|
|