What should I do when an Asp.net website error occurs?

Source: Internet
Author: User

You must open the website with IE on the server where the error occurred to see the complete error information. By analyzing the complete error information, you can know the specific cause of the error.

The error URL is not accessed on the faulty server. The information displayed is incomplete.

Common Errors may be as follows:
I. NET 1.1ProgramRun it on the. net2.0 Vm, or vice versa.

2. The conflict between the Web. config file designed by the user and the virtual master definition can be solved as long as the conflict row is deleted.

3. The program to be run in the root directory is put in the second-level directory, causing errors. For example, the NT Version of the DZ forum must be placed in the root directory to run.

Iv. Permission issues:

1. Do not click Start -- automatically set the controlled end -- set the ASP. NET security model, and restart IIS
2. manually set the necessary permissions of the system. For example, the user data directory requires the read and run permissions of the service (D: \ freehost)
3. You have manually changed the permissions of the c: \ Documents and Settings directory and sub-directories, resulting in the inability to write temporary files. You can refer to the normal computer to restore permissions.
4. You have manually changed the C: \ Windows directory permission, resulting in the inability to read the relevant DLL files.
5. If an error occurs only when Asp.net writes a file, read the following content:

If you need to use Asp.net to write files or directories, add the following permissions. For example, if the user data is stored in the D: \ freehost directory, you must add the read permission for the freehost group to D: \. You can add the read permission to the hard disk attribute --- security --- advanced. The last D: \ permission is as follows:

D: \ (if the user's website content is placed in this partition)
All permissions for Administrators
System read and run (if first-class information monitoring is installed, all permissions are set)
Freehost permission to read attributes (only this folder is available, and sub-directories do not need to be inherited)

Note !!!!! The permission to read an attribute is not the read permission. It is two completely different permissions!

In addition, you can test whether the server is normal:

First, check whether the server is configured with Asp.net.
1. Open a new Asp.net virtual host and upload a simple Asp.net program, such as the test. aspx file. The content of this file is: <% = now () %>
2. On this server, access test. aspx in IE to check the error information. You can find out the cause from the error information. (The error page must be viewed using IE on the server. The error cause cannot be viewed remotely .)

Related Article

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.