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?"
▸ 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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With