I am trying to add a list of site bindings to the applicationHost.config file as opposed to manually adding each one through IIS 7.5.
<site name="new_site" id="6">
<application path="/" applicationPool="new_site">
<virtualDirectory path="/" physicalPath="D:\HTTP\wwwroot\newsite" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80:example.com" />
<binding protocol="http" bindingInformation="*:80:www.example.com" />
<binding protocol="http" bindingInformation="*:80:example2.com" />
<binding protocol="http" bindingInformation="*:80:www.example2.com" />
</bindings>
</site>
The reason for doing this is i have 2000 bindings to add, which would be a lot easier to do if i could edit the config file directly.
When editing the config file however the bindings do not work or show up in IIS.
Is this actually possible or am i missing something?