Why can't I see the virtual directory created in Visual Studio 2013 for local IIS in IIS Manager?

I am trying to debug a problem when my local IIS mysteriously decided not to recognize my virtual directory.

In my MVC 4 project, my web server is set to "Local IIS" and my project url is equal http://localhost/MySite. When I click the button Create Virtual Directory, I get the message "The virtual directory was created successfully."

But when I go to IIS Manager and click on Default Web Site | MySite | View virtual directories, there are no virtual directories in the list. This also applies to the website where the virtual directory is running.

Why can't I see the virtual directory created in Visual Studio 2013for local IIS in IIS Manager?

Where can I see virtual directories created by VS?

+4
source share
1 answer

Try one of the following:

  • Check the box above the root URL of the application below to create a virtual directory, and then click on create virtual directory again.

Or:

  1. Right-click on the Explore to default website. Inside the open Windows Explorer, create a folder with the name that was specified in the URL of your project (immediately after localhost) in VS 2013. Example - create an application folder for the URL http://localhost/applications/test. Update IIS and it should work.
0
source

All Articles