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