How do you resolve parent paths in Visual Studio 2013?

I am converting a classic ASP site to an MVC project in Visual Studio 2013. When I run the classic ASP code inside the Visual Studio 2013 debugger, I get an error:

Error on active server pages 'ASP 0131' Prohibited parent path

The question arises: how to enable parent paths in the VS2013 debugger?

FYI is not IISExpress, but the use of parent paths is different.

+6
source share
2 answers

I myself found the answer. Here is how I did it.

  • I opened the task manager and saw that Visual Studio runs IISExpress processes for web server functionality.
  • I clicked the start button and entered IISExpress to find out where it was installed. To my surprise, but the obvious choice, it was located in the documents.
  • I opened the folder C: \ Users \ Mike \ Documents \ IISExpress \ config, then opened Notepad as an administrator.
  • Then I opened the applicationhost.config file and the element appeared in the element. I changed it to read.
  • Then I opened the MVC solution and ran the Classic ASP program without any problems. Everything works!
+10
source

I have Visual Studio 2015 and I had to do something else.

Right-click the IIS Express icon in your tray while the application is running, and select Show All Applications.

Click on the application you want to manage. You will see the location of the IIS Express server configuration file in the section below.

Edit it as an administrator and add enableParentPaths="true" to the asp XML element (under system.webServer ), as in Mike G.'s answer

For me, the configuration file was located in SolutionDir\.vs\config\applicationhost.config .

+7
source

Source: https://habr.com/ru/post/982456/


All Articles