we are running some of our sites as Web Site projects in Visual Studio. We recently upgraded to VS2015. Now we can't add virtual directories to new websites.
We already tried right-click "Add new virtual direcory" where we get an error message as well as editing the applicationhost.config in the Project folder.
Is this a bug with VS2015 or is there a way to create the directories? There is no problem with project that already ran on IIS Express before upgrading to VS2015.
PS: I know of the thread here but it doesn't help.
Alternative if you have solution file ".sln", then follow the steps:
Use notepad open the solution file.
Find the row starts with Project("{
For example:
Then change it to be:
And add new property
within ProjectSection(WebsiteProperties)
In example, the ProjectSection from
become this finally:
Neither of the answers above worked for me, I am still not sure why this works but here is what I did:
Modify the Applicationhost.config file that resides in the project:
Originally it looked like this:
I had to add another application path entry:
So it ends up looking like this:
FileSystem Web site to IIS Express.
Now you can create it without error.