Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio creating IIS virtual directories when solution opened

Visual Studio is asking to create virtual directories in IIS when I open a solution. Could this be because projects within the solution have been configured to use IIS rather than Cassini?

The dialog message is:

"The local URI ... specified for Web project ... has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?"

like image 909
Ben Aston Avatar asked Jun 22 '10 13:06

Ben Aston


People also ask

How do I disable virtual directory in IIS?

▸ To remove a virtual directory using IIS ManagerIn IIS Manager, expand the site containing the virtual directory you want to remove, right-click the virtual directory, and then click Delete. Click Yes.

How do I create a virtual directory in Visual Studio?

The virtual directory is created automatically when you run your project. Is that not working for you? You can close the ticket. VS will automatically create virtual directory for you if you append a directory name to url like https://localhost:5677/mywebapp.

How do I manually create a virtual directory in IIS Express?

In the Web site location text box, click New Web Site. In the Web URL text box of the Create New FrontPage Web dialog box, type the URL to the remote IIS server and append the name of the virtual directory that you want to create, for example, http://<server name>/<new virtual directory name>. Click OK.


1 Answers

Yes it is. If a web project is configured to use IIS (on the Web tab in the project properties -> "Use local IIS web server"), Visual Studio requires that the path defined exists in IIS as a virtual directory and corresponds to the project's location on disk. If the path does not exist in IIS, Visual Studio will offer to create it for you.

like image 191
adrianbanks Avatar answered Sep 21 '22 09:09

adrianbanks