After migrating our IIS 6.0 to IIS 7.0 using msdeploy, we experience some problems.
I used msdeploy to generate configurationsfiles without contentfiles. These files I coppied to the new 2008 server, and used msdeploy to import to IIS 7. At first it didn't work, because I had to rename usernames in the config file. Especially IUSR had to be renamed to be computer independent. I also renamed IWAM and NetworkService user to not include old computername.
Afterwards everything seems to be running fine, but eventlog is full of warnings and errors.
Warnings:
"The directory specified for caching compressed content C:\Windows\IIS Temporary Compressed Files\XXX is invalid. Static compression is being disabled."
1.1 Is this related to wrong usersettings since IIS can't created these folders?
1.2 Is it ok to change this path in applicationHost.config without using appcmd, and which user should have access to the new folder for this to work? We like to move these folder to another harddisk.
Errors:
"Error: The Template Persistent Cache initialization failed for Application Pool 'XXX' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes.." (I can't find additional error codes!)
2.1 What is this error about?
2.2 Is these cache directories required and can they be moved away from c:\?
We do not have dynamic compression enabled if this has something to do with that...
Applicationpool editing results in an error:
Trying to change default settings for application pools results in a message "The specified user name does not exist." I can avoid this error by clicking the Identity section and select NetworkService user before clicking to OK button.
Before selecting the Identity it already says NetworkService, so to the eye there is no differens.
3. How can I change this for good, so all pools uses the correct NetworkService user?
4. Is all of these errors related to msdeploy importing to many settings from the old server?
My experiense was that I had to delete some settings in the config file in order for msdeploy not to import the whole IIS. I only needed it to import the sites, not all the basic settings which aren't all IIS 7 compatible.
Hope some wise person can put some light on these issues for me ':)