IIS 7 & IIS 8
Application Initialization Module
appcmd restore backup doesn't work anymore
Last post Jul 16, 2012 03:53 AM by Hatchman76
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?
Oct 27, 2009 05:16 PM|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 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>
Jul 16, 2012 03:53 AM|LINK