Vs. NET Common Errors in debugging. net

Source: Internet
Author: User
Tags configuration settings

I. debug ASP. NET ApplicationsProgramThe error message "the project is not configured as debugging" appears.

Symptom

When you debug an ASP. NET application in Visual Studio. NET, the following error message may appear:

Error while trying to run project: unable to start debugging on the Web server. The project is not configured to be debugged

For ASP. NET projects, verify that you have a valid project file called 'web. config' for the URL specified and 'debug' is set to 'true' in that file.
For ATL server projects, verify that the 'debug' verb is associated with your ISAPI extension.
Wocould you like to disable future attempts to debug ASP. NET pages for this project?

Cause

This error is mainly caused by the following reasons:

The ASP. NET application does not have the Web. config file.
The execution permission attribute of the current project folder in "Internet Service Manager" is set to none.

Solution

To solve this problem, use one of the following methods based on your environment:

If your project does not have a web. config file, add a web. config file to the directory containing the ASP. NET application. If you are working in Visual Studio. NET, right-click the project in "Project Resource Manager", click Add new project, and then click Web configuration file.

If your project already has web. config file, and the Web. in the "Compilation" section of the config file, set the debug attribute to true. Follow these steps to set the execution permission attribute of the project folder:

1. Start "Internet Service Manager" and click the project you want to debug.
2. Right-click the project and click Properties.
3. Click the Directory tab.
4. If you select none in the execution permission list, Click Show script only and then click application.

2. An error message "cannot start debugging" appears when sending an HTTP request for debugging.

Symptom

When you debug an ASP. NET application in Visual Studio. NET, the following error message may appear:

Error while trying to run project: unable to start debugging on the Web server. server-side error occurred on sending debug HTTP request.

Make sure the server is operating correctly. make sure the server is operating correctly. you may also want to refer to the ASP. net and ATL server debugging topic in the online documentation. wocould you like to disable future attempts to debug ASP. net pages for this project?

Cause

This problem occurs if a syntax error occurs in the web. config file of an ASP. NET application.

Solution
To solve this problem, make sure that the Extensible Markup Language (XML) in the web. config file is in a valid and correct format. In addition, remember that all characters in Web. config are case sensitive.

3. Access denied when debugging ASP. NET applications. Check the DCOM configuration settings of the Computer debugging manager. "Error message

Symptom

When you remotely debug an ASP. NET application in Visual Studio. NET, the following error message may appear:

Error while trying to run project: unable to start debugging on the Web server. access is denied. check the DCOM configuration settings for the machine debug manager. wocould you like to disable future attempts to debug ASP. net pages for this project?

Cause

This error occurs because the user attempting to perform remote debugging is not a member of the "Debugger user" group on the Microsoft Internet Information Server (IIS) server.
Solution
To add an appropriate user to the debugger user group, perform the following steps on the Web server:
1. From the Windows Start Menu, point to program, point to management tools, and then click computer management.
2. In the left pane, click to expand computer management, system tools, and local users and group nodes.
3. Click the group and double-click the debugger user.
4. In the debugger User Properties dialog box, click Add.
5. In the select user or group dialog box, select the appropriate user and click OK.
6. Click OK to exit the debugger user Attributes dialog box.
7. Disable "Computer Management" Resource Manager.

4. error message "cannot start debugging on Web server" appears during ASP. NET application debugging

Symptom

When you debug an ASP. NET application in Visual Studio. NET, the following error message may appear:

Error while trying to run project: unable to start debugging on the Web server. wocould you like to disable future attempts to debug ASP. NET pages for this project?

Cause

This error occurs because Microsoft Internet Information Server (IIS) is not running or is not running properly.

Solution

To solve this problem, you must restart IIS. To do this, type iisreset at the command prompt.

5. When debugging ASP. NET pages, the Visual Studio. NET debugger does not stop at the breakpoint.

Symptom

When debugging ASP. NET Applications in Visual Studio. NET, the debugger may not stop at the breakpoint.

Cause

This problem occurs because ASP. NET debugging is not enabled in the application.

Solution

To solve this problem, follow these steps in Visual Studio. NET:
1. In Solution Explorer, select a project name.
2. Click properties in the project menu.
3. Click to expand the configuration attribute node.
4. In the Enable ASP. NET debugging list under debugging, click true.

6. Unable to debug ASP. NET web applications

Symptom

When you debug an ASP. NET application in Microsoft Visual Studio. NET, the following Microsoft Development Environment error message may be displayed:

Error while trying to run project: unable to start debugging on the Web server. the server does not support debugging of ASP. net or ATL server applications. run setup to install the Visual Studio. NET Server Components. if setup has been run, verify that a valid URL has been specified.

You may also want to refer to the ASP. NET and ATL server debugging topic in the online documentation. wocould you like to disable future attempts to debug ASP. NET pages for this project?

Cause

This error may occur if Microsoft. NET Framework settings or installation is not completed correctly. When this error occurs, the application ing of the ASP. NET file extension (such as. aspx) is not correctly configured in Microsoft Internet Information Service (IIS.

To check whether the application ing is correct, follow these steps:
1. Click Start, point to program, point to administrative tools, and then click Internet Service Manager.
2. Expand the node corresponding to the local host (computer name), and then expand the default web site node.
3. Right-click the web application directory and click Properties.
4. Under application settings on the Directory tab, click Configure.
5. Click the application ing tab.
6. Under application ing on the application ing tab, check whether the. aspx extension is mapped to the following dynamic link library (DLL ):
C: \ Windows directory \ Microsoft. NET \ framework \ v1.0.3705 \ aspnet_isapi.dll

Note: you must replace Windows directory in this path with the correct directory of your system.

7. If no application ing entry is found, follow the steps in solution.

Solution

To solve this problem, use the aspnet_regiis.exe management utility, which manages the installation and uninstallation of multiple versions of ASP. NET on a single computer.

To use the aspnet_regiis.exe utility, follow these steps:
1. Click start, and then click Run.
2. Type CMD in the open box, and click OK to open the command prompt.
3. In the command prompt, type the CD command to change to the following directory:
C: \ Windows directory \ Microsoft. NET \ framework \ v1.0.3705

4. Type aspnet_regiis-I to correctly configure the application ing.

Error while trying to run project: unable to start debugging on the Web server. access is denied. wocould you like to disable future attempts to debug ASP. NET pages for this project?

Verify that you are a member of the "Administrator" group and "Debugger user" group on your computer. The non-Administrator does not have the correct permission to debug the ASP. NET auxiliary process (aspnet_wp.exe.

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.