Mobile app version of vmapp.org
Login or Join
Jamie184

: How to move IIS7 site from one server to another What is the process to copy an entire .NET website from one server to another server? Both sites are running Windows Server 2008, IIS7, and

@Jamie184

Posted in: #Administration #Iis7 #Webserver

What is the process to copy an entire .NET website from one server to another server? Both sites are running Windows Server 2008, IIS7, and SQL 2008?


The base site is the live site
The new site is going to be used as a development site
The server hosting the development site has other, existing sites in IIS
The servers are on different networks and have different internet domain names


Part of this is easily done, such as copying the database and restoring it. The same can be said for the copying of the directory of files the IIS site gets pointed to -- no help needed for those tasks.

After the database and files are copied over, what are the necessary steps to make the site functional on the second server?

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Jamie184

4 Comments

Sorted by latest first Latest Oldest Best

 

@Pope3001725

Web Deployment Tool / msdeploy rocks.... if you are staying within same major version of IIS. However, I have seen significant headaches going from 7.x to 8.x.

10% popularity Vote Up Vote Down


 

@Nimeshi995

Web Deployment Tool is currently the Microsoft recommended way of copying and synchronizing web applications across IIS servers.

Read more here: learn.iis.net/page.aspx/446/synchronize-iis/
I noticed you didn't want to use MSDeploy but you didn't mention why.

10% popularity Vote Up Vote Down


 

@Holmes151

The applicationHost.config is not necessary in this case since you're going to setup a development server.

I would copy over the configuration to your dev box. The easiest way to do this is to go into IIS on your production server, click on the root server and select Shared Configuration.

Then click Export Configuration... and select a location.

Then on your new server go to the same Shared Configuration and check "Enable Shared Configuration". Choose those files you just exported. When that's complete uncheck enabled shared configuration.

That should get your site setup just like it is for production.

The next thing I would do is to edit the bindings to give it a new host name for dev. If our production site is mysite.com we use wwwd.mysite.com for development and wwwq.mysite.com for QA.

If you're big enough to have an IT department you probably want them to set up a DNS entry so developers can just type in wwwd.mysite.com. If you don't have DNS, you can edit your hosts file with a direct mapping to wwwd.mysite.com.

10% popularity Vote Up Vote Down


 

@Kevin317

If your environnement is identical, i mean with the same physical path, ip etc.. you can just applicationHost.config.

The file is by default located in the C:WindowsSystem32inetsrvconfig it's an xml file, si if you rigth a little tool you could change your binding before restore the file in your dev environnement

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme