Asp.net| Program | The project is copied to C:\Inetpub\wwwroot and can be opened normally, but reports: An error occurred attempting to run the project: debugging cannot be started on the Web server. The project is not configured for debugging.
Click to help one look:
Error: The project is not configured for debugging see
debugging scripts and the Web: errors and troubleshooting
An error occurred while trying to run the project: Cannot start debugging on the Web server. The project is not configured as a debug version.
Debug ASP.net project
Check to see if the project has a valid Web.config file, web.config whether the file sets "Debug" to "true", and whether the debug verb is associated with. aspx. For more information, see Debug mode in asp.net applications.
Debug an ATL Server project verify that the debug verb is associated with an ISAPI extension. For more information, see Debugging an ISAPI application.
And actually the problem is with the IIS configuration: Creating the Application
To create an application, designate a directory as the beginning of the application (the application root), and then you can set the properties of the application. Each application can have a friendly name that appears in the Internet information Services snap-in so that you differentiate between applications. This application name is not used anywhere else.
You can delete a directory from the application boundary so that requests for files in this directory and its subdirectories cannot start the application. Deleting a directory from the application boundary does not remove this directory from the Web site or from your computer's hard disk.
Creating an Application
In the Internet Information Services snap-in, select the directory that is the starting point for the application. You can designate the home directory of your Web site as the start location for your application.
Open the property page for the directory, and then click the home directory, virtual directory, or Directory tab.
Click the Create button.
In the Application Name text box, enter the name of the application.
Note If the Delete button appears instead of the Create button, the application is already created.
Remove a directory from the application
In the Internet Information Services snap-in, select the directory you want to delete.
Open the property page for the directory, and then click the home directory, virtual directory, or Directory tab.
Click the Delete button.
Skills
To terminate the application and uninstall it from memory, click the Uninstall button. If the uninstall button is not valid, you are not at the beginning of the application.
To detach the home directory from your application, click the Delete button.
Select the run in separate memory space (standalone process) check box to run the application in a process that is independent of the WEB server process. Applications that run quarantine can make it possible for other applications, including the WEB server itself, to be protected from this application failure or termination of the response.
Setting permissions for an application
Set permissions to None to prevent any programs or scripts from running.
Or
Set to pure script so that applications mapped to the script engine can run in this directory without having to set the Execute permission. You can also use script permissions for directories that contain ASP scripts, Internet Database Connector (IDC) scripts, or other scripts. Script permissions are more secure than execute permissions because you can restrict the applications running in this directory. For information about making your application a scripting engine, see the Application Mapping Properties page.
Or
Set up scripts and executables to allow any application to run in this directory, including applications mapped to script engines and Windows binaries (. dll and. exe files).
workaround: Go to Internet Information Service --> website --> Default website , find the project directory, click the right mouse button, enter Properties menu, directory --> application settings --> application name --> Create ; Execute permission Selection script and executable file
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.