IIS 7 and Above
Application Initialization Module
appcmd restore backup doesn't work anymore
Last post Jul 15, 2012 11:53 PM by Hatchman76
Oct 27, 2009 01:11 PM|Sebahi|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?
Oct 27, 2009 01:16 PM|thomad|LINK
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
Feb 22, 2010 03:36 PM|robsuth|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>
Jul 15, 2012 11:53 PM|Hatchman76|LINK