Asp. NET error collection and collation

Source: Internet
Author: User
Asp.net| Error

1. Maximum request length exceeded

Test upload file code, default ASP. NET allows the largest upload of 2M file size, I upload a netease bubble in their own server installation program POPO.exe file when this error occurred.

Reference articles:

In asp.net, the default size for uploading files is 4096 KB, which is 4M, but you can change this data in Web.config.

<system.web>
<!--increase upload file limit to 8M-->
</system.web>

Then it is 8M file, of course, you can also modify it larger, but no matter how large there will be a limit, if the user uploaded files than this value, there will be a program catch the exception, because this is in the runtime can be monitored.

The more commonly used method is to directly modify the C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG directory Machine.config file (the framework version will be different, you use what version of the version of the directory), look for httpruntime in this row maxRequestLength values to the ideal value, such as 8M, you enter 8192. This way, any of your Web projects can upload a maximum of 8M of files.

Instead of using a third-party component and using only. NET features, it seems that the 10M is actually peaking.

2. Insufficient access permissions for the application

Select Folder--Right--Properties--Security options--users (machine name \users) Users have full control over all buckles.

Execute asp.net page under Win2000 and WinXP, the default account is aspnet,win2003, and the default account is network SERVICES



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.