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?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to know full paths to DLL's from .csproj f
- How to store image outside of the website's ro
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
My file was located here:
Entries will look like this
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.
If you created another virtual directory by mistake, go to your .vs folder inside your solution/project folder and look for a file called:
and change/fix what is inside the tag:Hope this helps! :D
You can use appcmd.exe in C:\program files (x86)\IISExpress
appcmd list vdir
should list the virtual directories andappcmd delete vdir VDIR.NAME
to delete. Or, if you use Powershell, the commands start with.\
, e.g.,.\appcmd list vdir
.I faced the same issue today. The simplest way to deal with this is just simply change the Port number. Go to the Properties of the Project which you have made as Startup Project. Then...
Click to view => Step 1
Let's say the initial port number is 62168. Just increment it by 1.
Click to view => Step 2
And create a new virtual directory. Now execute the project again. This time it'll work.
Steps:
Hope this helps!