An error occurred while debugging ASP. NET running projects in vs.net: Unable to debug the application [zz]

Source: Internet
Author: User
Http://www.shengfang.org/blog/p/aspneterrdebug.php

Copy to c: \ Inetpub \ wwwroot, which can be opened normally, but report: An error occurred while trying to run the project: Debugging cannot be started on the Web server. The project is not configured for debugging.

Click Help to see:

Error: The project is not configured for debugging. See
Debugging scripts and Web: errors and troubleshooting
An error occurred while trying to run the project: you cannot start debugging on the Web server. This project is not configured as a debug version.

Debug an ASP. NET Project
Check whether the project has a valid Web. config file, whether the Web. config file sets "debug" to "true", and whether the debug predicate is associated with. aspx. For more information, see debug mode in ASP. NET applications.

Debug the ATL server project to verify whether the debug predicate is associated with the ISAPI extension. For more information, see debug an ISAPI application.

<Compilation defaultlanguage = "C #" DEBUG = "true"/> Web. config

In fact, the problem lies in the IIS configuration: Creating an application
To create an application, specify a directory as the start position of the application (application root directory), and then set the properties of the application. Each application can have a friendly name that appears in the Internet Information Service Management Unit to differentiate applications. This application name is not used elsewhere.

You can delete a directory from the application boundary so that the application cannot be started for the file requests in this directory and Its subdirectories. Deleting a directory from the application boundary does not delete this directory from the website or computer hard disk.

Create an application

In the Internet Information Service Management Unit, select the directory where the application starts. You can specify the Home Directory of the website as the starting position of the application.
Open the directory properties page, and click the "main directory", "virtual directory", or "directory" tab.
Click create.
In the Application name text box, enter the application name.
Note: If the "delete" button appears instead of the "Create" button, it indicates that the application has been created.

Delete a directory from an application

In the Internet Information Service Management Unit, select the directory to delete.
Open the directory properties page, and click the "main directory", "virtual directory", or "directory" tab.
Click Delete.
Tips

To terminate an application and detach it from the memory, click the detach button. If the unmount button is invalid, it indicates that you are not at the beginning of the application.
To separate the home directory from the application, click "delete.
Select the "run in a separate memory space (independent process)" check box to run the application in a process independent of the Web server process. Running an isolated application can protect other applications (including the web server itself) from this application failure or termination response.
Set permissions for Applications

Set the permission to "NONE" to prevent any programs or scripts from running.
Or
It is set to "Pure script" so that applications mapped to the script engine can run in this directory without the need to set the "execution" permission. You can also use the "script" permission for directories that contain ASP scripts, Internet Database Connector (IDC) scripts, or other scripts. The "script" permission is more secure than the "execute" permission because it can restrict applications running in this directory. For information on making an application a script engine, see the application ing properties page.
Or
Set "scripts and executable files" to allow any application to run in this directory, including ing to the script engine and Windows binary files (. DLL and..

Solution: Go to the default website of the Computer Management Service and application Internet Information Service website, find the project directory, right-click the project, enter the properties menu, and set the application Name Creation button for the Directory Application; select scripts and executable files for execution Permissions

Related Article

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.