Vs. NET Common Errors in ASP. NET debugging

Source: Internet
Author: User

1. When debugging ASP. NET applications, an error message "the project is not configured for debugging" is displayed.

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.
File. If you are in Visual Studio. NET
, Right-click the project in "Project Resource Manager", click Add new item, and then click Web configuration file.

If your project already has the Web. config file, and debug is in the "compile" section of the web. config file
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
Server is operating correctly. You may also want to refer
The ASP. NET and ATL server debugging topic in the online
Documentation. wocould you like to disable future attempts
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.

[B] solution [/B]

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
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
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 Microsoft Internet Information.
A member of the "Debugger user" group on the 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
Debug ASP. NET pages for this project?

Cause

Microsoft Internet Information Server (IIS)
Not running or 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:

Error while trying to run project: unable to start debugging on
The Web server. The server does not support debugging
ASP. NET or ATL server applications. Run setup to install
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
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
Microsoft Internet Information Service (IIS) does not correctly configure the ASP. NET file extension (for example
. Aspx.

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 multiple versions
Install and uninstall ASP. NET.

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. Non-Administrator does not have ASP. NET auxiliary process debugging
(Aspnet_wp.exe.

Khan !...
I finally finished it. I hope it will be helpful to new users who are using vs. Net for debugging, so I will not take a detour!

After you delete and reinstall IIS, the IIS ing is fixed.

Summary
Install Microsoft. NET Framework software development kit (SDK) or Visual Studio. NET
Then, an Internet Information Service (IIS) ing is created to establish an association for the new file extension and settings of ASP. NET. If you are running
IIS is not installed when the SDK or Visual Studio is installed, or when the SDK or Visual Studio is running
After the installation program is uninstalled and IIS is re-installed, these settings are incorrect. An error occurred while trying to view the ASP. NET page.

When you try to create an ASP. NET web in Visual Studio. NET 2003
The application receives the following error message:

Visual Studio. NET has detected that the specified Web Server
Is not running ASP. NET version 1.1.you will be unable to run
ASP. NET web applications or services.

More information

To fix IIS ing for ASP. NET, follow these steps:
Run the aspnet_regiis.exe utility:
Click Start, and then click Run ".
In the open text box, type cmd and press Enter.
Type the following command at the command prompt and press Enter:
"% WINDIR %/Microsoft. NET/framework/version/aspnet_regiis.exe"-I

In this path, the version indicates the. NET Framework installed on the server.
. When you type this command, you must replace this placeholder with the actual version number.
Register aspnet_isapi.dll:
Click Start, and then click Run ".
In the open text box, type the following command and press Enter:
Regsvr32 % WINDIR %/Microsoft. NET/framework/version/aspnet_isapi.dll

Regsvr32 returns the registration result.

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.