We just discovered this issue. The problem is that the application warmup schema file has the read-only attribute set. This prevents the copying of the schema file during the restore and you get the error you are seeing. The IIS Powershell cmdlet Restore-WebConfiguration
has the same problem.
By executing the command below you can fix the problem:
This just caught me out using Powershell with the latest release. Although I get the error "Access to the path 'appwarmup_schema.xml' is denied." No way to fix it other than to delete the file, not overly ideal in continuous deployment scenarios
Sebahi
1 Post
appcmd restore backup doesn't work anymore
Oct 27, 2009 05:11 PM|LINK
I installed Application Warm-Up module and it works great. I get error when I try to restore backup though. Here is the error I'm getting:
c:\Windows\System32\inetsrv>appcmd restore backup test
ERROR ( hresult:80070005, message:Command execution failed.
Access is denied.
)
Can somebody help?
Sebahi
thomad
552 Posts
Re: appcmd restore backup doesn't work anymore
Oct 27, 2009 05:16 PM|LINK
Sebahi,
We just discovered this issue. The problem is that the application warmup schema file has the read-only attribute set. This prevents the copying of the schema file during the restore and you get the error you are seeing. The IIS Powershell cmdlet Restore-WebConfiguration has the same problem.
By executing the command below you can fix the problem:
attrib -r %windir%\system32\inetsrv\config\schema\appwarmup_schema.xml
Hope this helps
Group Program Manager
Internet Information Services
Microsoft Corp.
robsuth
1 Post
Re: appcmd restore backup doesn't work anymore
Feb 22, 2010 07:36 PM|LINK
I had to run:
attrib -r %windir%\system32\inetsrv\config\schema\rewrite_schema.xml
instead. Win 7 64 bit. Have to do that everytime before running
appcmd restore backup <name>
Hatchman76
5 Posts
Re: appcmd restore backup doesn't work anymore
Jul 16, 2012 03:53 AM|LINK