How do I handle asp.net web site errors? _ Outside the star virtual host
Source: Internet
Author: User
Must be on the wrong server, ie open the wrong URL, in order to see the complete error information, through the analysis of the complete error message, to know the specific cause of the error.
Do not access the wrong web site on the wrong server and see the information is incomplete.
The usual errors may be as follows:
One, Net 1.1 of the program is placed in. Net2.0 the virtual host, or vice versa
Second, the user's own design of the Web.config file and virtual master definition of the conflict, as long as the delete conflict line can be resolved.
Third, the need to put in the root directory to run the program is placed in the level two directory caused errors, such as DZ Forum NT version to be placed in the root directory to run.
Iv. Issues of Competence:
1. No point to start--automatically set the managed end--set the ASP.net security model, set up to restart IIS
2. Manually set up the system necessary permissions, such as user Data directory is the need for service read and run permissions (d:\freehost)
3. Manually changed the C:\Documents and Settings directory and subdirectory permissions, resulting in the inability to write temporary files, you can refer to the normal computer to restore permissions
4. Manually changed the permissions of the C:\windows directory, resulting in unreadable related DLL files.
5. If the error is only asp.net write to the file operation, you can look at the following:
If a user needs to write a file or directory with ASP.net, the following permissions need to be added. For example, if the user data is placed in the D:\Freehost directory, you can add the Freehost group read properties to the d:\ in the hard drive properties---security---advanced. The final d:\ permissions are as follows
D:\ (If the user site content is placed in this section)
Administrators all permissions
System Read and run (set all permissions if first-class information monitoring is installed)
Freehost permission to read properties (only this folder, subdirectories do not inherit)
Attention!!!!! The right to read the property is not read permission, this is two completely different permissions!
Also, test the server for the normal way:
First, you need to confirm that the server is configured asp.net
1. New open a ASP.net virtual host, do a simple asp.net program upload, such as test.aspx file, the contents of this document is: <%=now ()%>
2. In this server, IE access to the test.aspx, look at the error message, from the error message can probably know the reason. (You must view the error page with IE on the server, and you cannot see the cause of the error remotely.)
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