I want to be able to configure my applicationhost.config to include a FQDN for my site. I have a batch file to set this up as visual studio complains about it when it loads.
This article says that running
appcmd.exe set config -section:system.applicationHost/sites /+"[name='WebApplication1'].bindings.[protocol='http',bindingInformation='*:80:www.wingtiptoys.com']" /commit:apphost
should add the correct entry (im assuming to the gloabl apphost), however i get the following error when I run it:
ERROR ( message:Cannot find requested collection element. )
This is not a super helpful error message.
How can I setup a FQDN url for IIS Express from the commandline?