I'm having trouble using Web Deploy's appHostConfig provider with IIS 6. I don't see anything in the documentation saying I can't or that I need to install anything extra.
I know what I'm trying to do works in later versions of IIS. If I run the command below on IIS 7.5 (Windows 7), it creates a copy of the Default Web Site
that I can see in IIS Manager.
"C:\Program Files (x86)\IIS\Microsoft Web Deploy V2\msdeploy.exe"
-verb:sync
-source:apphostconfig="Default Web Site"
-dest:apphostconfig="Created from command line"
However, when I try to do the exact same thing on IIS 6 (Windows 2003), I get this message:
Error: Object of type 'appHostConfig' and path 'Default Web Site' cannot be created.
Error: A command was issued that requires the IIS Configuration System but the system is not available. Make sure you are using a version of IIS that contains the Configuration System.
Can I do this in IIS 6, or do I need to do something differently?
You can't use appHostConfig in IIS6.
appHostConfig works by directly syncing the applicationHost.config file which governs IIS7.
In IIS 6, this functionality was implemented using the IIS Metabase, instead of a config file based system, so there is no counterpart that the provider can directly copy. (This is why you get that error about the 'configuration system')
For your example, you can likely use webServer60
provider to achieve the same.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With