-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creation of the virtual directory failed #1950
Comments
I'm getting exactly the same error. It's disappointing to see that nobody has replied with any suggestion on how to fx it. |
I had this one, check whether your applicationhost.config has the website defined - if you are not an admin, this will have been created in the admin's config file rather than your own. Copy the details from that config to yours (change the id if necessary), the full path is User\Documents\IISExpress\config\applicationhost.config |
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://$Subdomain.localtest.me:80/" user=Everyone Change "Everyone" to "Jeder" in German. |
I wonder if using the SID (S-1-1-0) would be better since it's not a localized name. |
It seems you can't insert a SID in the "user" parameter (I'm not an expert in netsh ;) ), but maybe the sddl parameter will do the trick: I'm not sure if this is the same as "user=Everyone", but from the "netsh http show urlacl" it seems identical Made with the "user" parameter (on my English machine): Made with the "sddl" + SID parameter: Seems also to work on a German machine: IMHO would be helpful for beginners and would remove one error source. |
user=Everyone only works on EN Windows Versions. Idea was given in this issue NuGet#1950
I'm actually getting this, when I try to run with CTRL+F5
If I run with F5, it all works. I've looked around the solution, but not a single property in my settings refers to https or 443 (I've set the project url to http://localhost:8090 Anyone who might give me a nudge in the right direction? |
Did you run the EnableLocalTestMe.ps1? Did you change the project settings? |
Seems something went wrong with the EnableLocalTestMe
But, I don't understand why it wants to bind to https:// 443, where is this defined? Why does it do this when I run in DEBUG, but with CTLR+F5? Where does this setting come from? (There is no magic!) In dev I don't really mind about https, I just want it to run, it's ok if it's over http on my local machine, and it's also ok to use "localhost:12345" or whatever |
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 |
I've followed the steps outlined in the
readme.md
files and have run bothbuild.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?
The text was updated successfully, but these errors were encountered: