Creation of the virtual directory failed
See original GitHub issueI’ve followed the steps outlined in the readme.md
files and have run both build.cmd
and the .\tools\Enable-LocalTestMe.ps1
file. I can confirm this by opening readme.localtest.me in a browser; it shows the readme website as expected.
However, when I try to load the NuGetGallery.csproj
file in Visual Studio, I get the following error message: Creation of the virtual directory http://nuget.localtest.me failed with the error: Cannot create the Web site ‘http://nuget.localtest.me’. You must specify “localhost” for the server name.
How do I get around this?
Issue Analytics
- State:
- Created 10 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
visual studio - Creating a virtual directory failed with the error
My issue was with Windows 10 Defender. I had given IIS permission in the past, but seems like it is now ignoring it....
Read more >Creating A Virtual Directory Failed With The Error
The error "Creating a virtual directory failed" might be a fake error or a virtual error. In my experience, it is possibly caused...
Read more >creation of the virtual directory failed... [cannot] create IIS ...
Hopefully a quick fix for this issue as it means it is not longer possible to share conditional configuration between IIS Express and...
Read more >Fixing the “Failed to create virtual directory” error for IIS Express
Close the solution in Visual Studio · In File Explorer, navigate to the folder containing the solution · Open the .vs folder –...
Read more >"Creation of the virtual directory https://localhost:8080 ...
Hi everyone! I found another post about this on this sub, I made sure IIS was installed, I tried to create the virtual...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just a couple of minutes ago I fighted against this issue as well. It worked for me on 3 machines, but failed by my colleague. Reason was: He used a German Windows Version, so this lines (in the Enable-LocalTestMe.ps1) must be “localized”:
Invoke-Netsh http add urlacl “url=http://:80$Subdomain.localtest.me/” user=Everyone Invoke-Netsh http add urlacl “url=https://:443$Subdomain.localtest.me/” user=Everyone
Change “Everyone” to “Jeder” in German.
Nevermind… it was the project Properties (not the “Properties” subnode, but the VS Properties, and set “SSL Enabled” to false… doh!
Always miss those properties, so very well hidden