iis - appcmd.exe to overwrite a single site's entire xml config (applying the settings to a site that already exists) -


i don't want delete , recreate site want able apply entire config , override settings different.

i backed site config %windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml

this command throws error:

appcmd.exe add site /in < c:\sites.xml error ( message:failed add duplicate collection element "mysite". ) 

do have break out of iis configuration separate appcmd commands or there way apply entire xml in 1 shot , have override settings?

i want have single xml template can push out webservers hosting site.

you should try shared config

http://www.iis.net/learn/manage/managing-your-configuration-settings/shared-configuration_264

regarding:

 error ( message:failed add duplicate collection element "mysite". ) 

it seems can not add website exist.

why dont delete , add again new configurations?

you can try modify relevant sections.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -