[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Migrating Application Pool from one IIS instance to another.

Posted on 2011-10-11
6
Medium Priority
?
2,755 Views
Last Modified: 2012-08-13
Is it possible to migrate an Application Pool from one IIS instance to another? In my situation, I'm trying to migrate an AppPool from an IIS 7.0 instance (running on Server 2008 Web edition x86) to an IIS 7.5 instance (running on Server 2008 R2 x64).

How would one do this? Is it possible?
0
Comment
Question by:VLib
  • 4
  • 2
6 Comments
 
LVL 30

Expert Comment

by:Brad Howe
ID: 36953246
You cannot migrate AppPools between IIS Instances unfortunately.

You can however migrate Sites containing settings & content using MSDEPLOY.
http://learn.iis.net/page.aspx/421/installing-web-deploy/

OR

you can use APPCMD to export just the site config and then copy the site contents over.

eg:
   export - appcmd list site /name:<sitename> /config /xml > C:\output.xml
   import - appcmd add sites /in < c:\output.xml

Cheers,
Hades666
0
 

Author Comment

by:VLib
ID: 36953446
I did this with MSDeploy, and when I attempt to import the exported site, I get the following error:

The package installation failed.

Details:    
The synchronization was stopped by the 'DependencyCheckFailOnError' rule because one or more dependency checks were triggered at the 'Error' level.

Error: The AppPoolNotFound dependency check found the AppPool 'NameOfSite' to be in use by the source data but not defined in source data or on the destination computer.  Applications referencing this application pool will have configuration issues.
Error: The AppPoolNotFound dependency check found the AppPool 'MSSharePointAppPool' to be in use by the source data but not defined in source data or on the destination computer.  Applications referencing this application pool will have configuration issues.
Error: The AppPoolNotFound dependency check found the AppPool 'RelatedToNameOfSite' to be in use by the source data but not defined in source data or on the destination computer.  Applications referencing this application pool will have configuration issues.
Error: The AppPoolNotFound dependency check found the AppPool 'SoftwareShield' to be in use by the source data but not defined in source data or on the destination computer. Applications referencing this application pool will have configuration issues.

I changed the name of "NameOfSite" and "RelatedToNameOfSite" for security reasons, as they contain the name of the site.

This dependency issue is why I was asking about exporting and importing AppPools. Any idea how to resolve this?  
0
 
LVL 30

Expert Comment

by:Brad Howe
ID: 36953507
Can you provide the msdeploy export command you used.

As the error states, the app pools are not on the destination server so the dependency fails.  Option 1 is to create them manuallly on the destination server, or Option 2 is the sync using hte proper swiches.

-Hades666
0
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
LVL 30

Expert Comment

by:Brad Howe
ID: 36953517
For example.

This example enables the AppPoolExtension so that application pools are included in the sync operation.

msdeploy -verb:sync -source:appHostConfig="Default Web Site" -dest:appHostConfig="Default Web Site",computerName=Server2 -enableLink:AppPoolExtension

http://technet.microsoft.com/en-us/library/dd569089(WS.10).aspx

Cheers,
Hades666
0
 

Author Comment

by:VLib
ID: 36953703
hades666,

I executed the msdeploy command as specified, and received the following error:

Error: (10/12/2011 1:20:30 AM) An error occurred when the request was processed on the remote computer.                                                        
Error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.                                                  
Error count: 1.            

The destination machine is a new server and research indicates this is a bug in msdeploy (not actual memory corruption) and there are resolutions. How do I correct this error?                                              
0
 
LVL 30

Accepted Solution

by:
Brad Howe earned 2000 total points
ID: 36955998
Ok,

That is the result of a msdeploy remote setup issue.

Try archiving to a folder and copy across.

On source:
msdeploy.exe -verb:sync -source:appHostConfig="Default Web Site",encryptpassword=somepass -dest:archiveDir="D:\Sites\Default Web Site",encryptpassword=somepass  -enableLink:AppPoolExtension

On destination (after archive is copied over):
msdeploy.exe -verb:sync -source:archiveDir:"D:\Sites\Default Web Site",encryptpassword=somepass -dest:appHostConfig="Default Web Site",encryptpassword=somepass

Cheers,
Hades666
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
The viewer will learn how to dynamically set the form action using jQuery.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question