Link to home
Start Free TrialLog in
Avatar of Robert Perez-Corona
Robert Perez-CoronaFlag for United States of America

asked on

IIS appcmd import xml file in order to create site

I desperately need to import my settings IIS 7 to another server IIS 7. I exported and tried to import using the appcmd but i receive this error

"ERROR ( message:Failed to add duplicate collection element "Default Web Site".

I was told to change the site ID to a different value and rename the site. But I need it to be under the actual site id 1 under "default web site"

Is there anyway to overwrite the default site?
Avatar of Robert Perez-Corona
Robert Perez-Corona
Flag of United States of America image

ASKER

if i renamed the original default site and change the site id on the destination server..will i then be able to use side id 1 and the default website name from the source server?

thx
Avatar of Sanjay Santoki
Hello,

How you have taken backup from the source server? You should use copy switch since you are restoring it on the different server which will remove server specific properties.

Regards,
Sanjay Santoki
ASKER CERTIFIED SOLUTION
Avatar of Robert Perez-Corona
Robert Perez-Corona
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I ended up modifying the xml file site id and it script executed with no errors. It seems as if i could not overwrite the current default website. I understand this is probably a safety net designed by Microsoft.