Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove virtual directory in IIS Express created in error

I clicked on create virtual directory of the web tab of the properties menu. My application now isn't running (the published version is) It just hangs when any of my controllers code is executed I think I've messed up the IIS config Can anyone help me out?

like image 838
John Avatar asked Sep 05 '25 03:09

John


2 Answers

enter image description here

My file was located here:

C:\Users\YourUserName\Documents\IISExpress\config\applicationhost.config

Entries will look like this

<application path="/virtualDirectoryName" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="C:\projects\Project1" />
                </application>
like image 129
BraveNewMath Avatar answered Sep 08 '25 13:09

BraveNewMath


None of this worked for me - possibly because I'm working with a later version of the tools (VS 2017). I finally found the correct appplicationhost.config file in the .vs directory for the solution, edited it, rebooted, and it worked.

like image 38
Chris B. Behrens Avatar answered Sep 08 '25 13:09

Chris B. Behrens