question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creation of the virtual directory failed

See original GitHub issue

I’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:closed
  • Created 10 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
robertmuehsigcommented, May 5, 2014

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.

0reactions
CumpsDcommented, May 15, 2014

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found