Asp. NET debugging problems and solutions

Source: Internet
Author: User

From MSDN:
Asp. NET Debugging.
Note If you do not find the error message you want in this section, review the section on handling the general debugging issues or the remote debugging issues.
Message: Unable to start debugging on the Web server.
Figure 1. Failed to start debug error message
Reason 1: The IIS application is not configured to use integrated Windows authentication. Make sure the Integrated Windows authentication check box in the Authentication Method dialog box is selected, as shown in Figure 2.
Figure 2. Enabling Integrated authentication
Reason 2: Check the Enable HTTP Keep Alive option for IIS. If it is turned off, you may need to turn it on, and then try debugging.
Message: You do not have permission to debug the server.
Figure 3. No Debug permissions
Reason 1: Make sure integrated Windows authentication is enabled. The possible reason is that Basic authentication is enabled only for Directory security for IIS.
Reason 2: If you are using integrated Windows authentication, you need to make sure that your user account has full control of the IIS directory.
Reason 3: If you create a Web project with a complete machine name (such as Machinename.domainname.something), the Web site is recognized as an Internet site. Therefore, the default settings for Internet Explorer will have an impact on the logon behavior. In this case, you need to use the current account to enable logon in the Internet area with the IE settings.
However, this is not the default setting for Internet Explorer, so it is a good idea to use only the machine name to create the project, using Figure 4 as a guide to security Settings.
Figure 4. Setting up Internet Explorer authentication
Message: Server-side error occurred while sending debug HTTP request.
Figure 5. Server-side errors during debugging
Reason 1:web application has no application name. To do this, use the IIS MMC to check the properties of the Web project to ensure that the Web project has an application name. The application name should appear when the red outline in Figure 6 appears.
Figure 6. Setting the application name
Reason 2: If you are using the NTFS file format, make sure that "ASPNET" has the appropriate permissions on the "Wwwroot" or virtual directory folder to access and write to these folders.

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.