VS.NET debugging ASP.NET Common Error Summary

xiaoxiao2021-03-06  90

VS.NET debugging ASP.NET Common Error Summary

First, the error message "unable to configure the project is not debug" when debugging the ASP.NET application

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. WOULD you like to disable future attempts to debug asp.net Pages for this project?

the reason

This error occurs mainly because of the following reasons:

The ASP.NET application has no web.config file. The execution license property of the current project folder in the Internet Service Manager is set to not.

solution

To resolve this issue, use one of the following methods according to your specific environment:

If your project doesn't have a web.config file, add a web.config file to the directory containing the ASP.NET application. If you work in Visual Studio .NET, use the item in "Project Explorer" in the Project Explorer, click Add new item, and then click the web configuration file.

If your project already has a web.config file, and the debug property in the "Compilation" section of the web.config file is set to True, follow these steps to set the execution license property of the project folder:

1 Launch "Internet Service Manager" and click the item you want to try to debug. 2 Right-click the item and click Properties. 3 Click the Directory tab. 4 If there is no in the execution license list, click "Display Script" and then click Apply.

2. Error message "Unable to start debugging" when sending a debug HTTP request

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.would you like to DISABLE FUTURE ATTEMPTS to DEBUG ASP.NET PAGS for this project?

the reason

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

[b] Solution [/ b]

To resolve this issue, make sure that the extensible tag language (XML) in the web.config file is valid and the format is correct. In addition, remember that all characters in web.config are case sensitive.

Third, "Access is rejected" when debugging an ASP.NET application. Check if the computer debug manager's DCOM configuration settings. "

symptom

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

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.Would you like to disable future attempts to debug ASP.NET pages for this project?

the reason

This error occurs because users trying to perform remote debugging users are not members of the Debugger User group on the Microsoft Internet Information Server (IIS) server. Solution To add the appropriate user to the Debugger User group, follow these steps in the web server: 1 From the Windows Start menu, point to the program, point to Administrative Tools, and then click Computer Management. 2 In the left pane, click to expand your 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 then click OK. 6 Click OK to exit the debugger User Properties dialog. 7 Turn off the Computer Management Explorer. Fourth, debugging an error message that appears when the ASP.NET application appears on a web server

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.would you like to disable future attempts to debug asp.net Pages for this project?

the reason

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

solution

To resolve this issue, you must restart IIS. To do this, type Iisreset at the command prompt.

5. The Visual Studio .NET debugger is not stopped at the breakpoint when debugging the ASP.NET page

symptom

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

the reason

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

solution

To resolve this issue, follow these steps in Visual Studio .NET: 1 In the Solution Explorer, select the project name. 2 In the project menu, click Properties. 3 Click to expand the configuration properties node. 4 Enable the ASP.NET debug list under debugging, click True.

6. Unable to debug an ASP.NET web application

symptom

When you debug an ASP.NET application in Microsoft Visual Studio .NET, you may display 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 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.Would you like to disable future attempts to debug ASP.NET pages for this project?

the reason

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

To check if the application mapping is correct, follow these steps: 1 Click Start, point to Programs, point to Administrative Tools, and then click Internet Service Manager. 2 Expand the node corresponding to the local host (computer name), then expand the default Web site node. 3 Right-click on the web application directory and click Properties. 4 With the application settings on the Directory tab, click Configure. 5 Click the Application Mapping tab. 6 In the application map of the application mapping tab, check if 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 the application map entries are not found, follow the steps in the "Solution" section.

solution

To resolve this issue, use the ASPNET_REGIIS.exe administrative utility, which manages the installation and uninstallation of multiple versions 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, then click OK to open the command prompt. 3 Type the CD command at the command prompt to change to the following directory: C: / Windows Directory / Microsoft.Net / Framework / V1.0.37054 Type ASPNET_REGIIS -I to map the required application to properly configure.

Error While Trying to Run Project: Unable to start debugging on the web server.access is Denied.Would 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 the Debugger User group on your computer. Non-administrators do not have the correct permissions of debugging the ASP.NET assist process (ASPNET_WP.EXE).

sweat! ... I finally finished, I hope to have some effects on users and users debugging with vs.net, less detours!

Remove the IIS mapping after deleting and reinstalling IIS

Overview Installs the Microsoft .NET Framework Software Development Kit (SDK) or Visual Studio .NET, the Internet Information Services (IIS) mapping is created to create associations for ASP.NET's new file extensions and settings. These settings will be incorrect if you do not install IIS when running an SDK or Visual Studio installer or after running an SDK or a Visual Studio installer. Expected phenomenon when trying to view the ASP.NET page.

When you try to create a new ASP.NET web application in Visual Studio .NET 2003, you receive 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 the IIS mapping for ASP.NET, follow these steps: Run the ASPNET_REGIS.EXE utility: Click Start, and then click Run. In the "Open" text box, type CMD, then press Enter. Type the following command at the command prompt, press ENTER: "% windir% / microsoft.net / framework / version /ASPNET_REGIIS.EXE" -i

In this path, the version represents the version number of the .NET Framework installed on the server. When you type this command, this placeholder must be replaced with an actual version number. Register ASPNET_ISAPI.dll: Click Start, and then click Run. In the "Open" text box, type the following command, then press ENTER: Regsvr32% WINDIR% / microsoft.net / framework / version /ASPNET_ISAPI.DLREGSVR32 will return registration results.

转载请注明原文地址:https://www.9cbs.com/read-123288.html

New Post(0)