Reputation: 11
I am getting Exception
"Unable to create virtual directory.Could not find the server 'https:devlocal.com/test' on local machine. Make sure the local IIS server has been configured to support secure communication."
1.I had added a host entry for 127.0.0.1 devlocal.com
now when i am trying to create virtual directory from VS2010 it is displaying above mentioned exception.
Upvotes: 1
Views: 10819
Reputation: 12132
You'll often get this if you either change the default port binding as per another answer or if you're using host header files and you alter the IP address to something specific like 192.168.1.1
instead of using All Unassigned
.
I believe Visual Studio uses 127.0.0.1:80
to talk to IIS for this properties dialog. So if your site in IIS uses bindings other than that such as
127.0.0.1:67
or
192.168.1.1:80
it will fail.
Upvotes: 0
Reputation: 36438
I had removed the default binding to port 80 (which I assume Visual Studio uses to request IIS creates a virtual directory).
Adding this back in solved the problem.
Upvotes: 1
Reputation: 565
Adding Host Header resolved the issue for my case. Hope you got some resolution - if so, please update us as well.
As depicted above, specifying the Host Header Value as well as adding Network Service with Full access rights for the actual physical folder of the site has resolved the issue.
Hope this helps someone, as I didn't got any clear details from any source. Please note that I'm using Windows 2K3.
Upvotes: 0
Reputation: 9209
Try the following:
In command window navigate to "c:\windows\microsoft.net\framework\v2.0.50727"
- then run "ASPNET_REGIIS -i"
- then run "ASPNET_REGIIS -ga ASPNET"
Note: Assumption that your boot drive is C
Upvotes: 0