VS.NET debugging. Common errors occurred in NET

xiaoxiao2021-03-06  148

1. Error message when debugging an ASP.NET application occurs 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 The project is not configured to be debuggedFor 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? this is the main reason for the error Because of the following reasons: ASP.NET applications don't have a 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 based on 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 Start "Internet Service Manager, and then 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" occurs when you send debug HTTP requests 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 pages for this project? This issue occurs if there is a syntax error in the web.config file of the ASP.NET application. Solution 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 the ASP.NET application. Please check the DCOM configuration settings for the computer debug manager." When you debug an ASP.NET application in Visual Studio .NET, you may the following error message appears: 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 This error occurs because the reason why the user attempts to perform remote debugging is not a member 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 is debugging the ASP.NET application when you debug an ASP.NET application in Visual Studio .NET: 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 CAUSE this error occurs because Microsoft Internet Information Server (IIS) is not running or not running? normal. Solution To resolve this issue, you must restart IIS. To do this, type Iisreset at the command prompt. 5. When debugging an ASP.NET page, the Visual Studio .NET debugger does not stop the symptoms in the Visual Studio .Net, the debugger may not stop at the breakpoint. 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.

Sixth, you cannot debug an ASP.NET web application symptoms 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? If the reason Microsoft .NET Framework setup or installation was not completed properly, it may This error occurs. 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 Under the application mapping of the application mapping tab, check if the .aspx extension maps to the following Dynamic Link Library (DLL): C: / Windows Directory / Microsoft.Net / Framework / V1.0.3705 / aspnet_isapi.dll Remarks: 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 multiple versions of ASP.NET installation and uninstall 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.

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

New Post(0)