安装 Visual Studio Web Tools 的奇怪问题
安装Microsoft ASP.NET 5 RC 1 时提示
0x80070005 - 拒绝访问
日志文件为
[1968:3F64][2015-11-20T10:08:36]i010: Launching elevated engine process.
[1968:3F64][2015-11-20T10:08:37]i011: Launched elevated engine process.
[1968:3F64][2015-11-20T10:08:38]i012: Connected to elevated engine.
[2E38:3F28][2015-11-20T10:08:38]i358: Pausing automatic updates.
[2E38:3F28][2015-11-20T10:08:38]i359: Paused automatic updates.
[2E38:3F28][2015-11-20T10:08:38]i360: Creating a system restore point.
[2E38:3F28][2015-11-20T10:08:38]i361: Created a system restore point.
[2E38:3F28][2015-11-20T10:08:38]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5fefbd00-3078-41ea-a615-dbcce6a6f135}, options: 0x7, disable resume: No
[2E38:3F28][2015-11-20T10:08:44]e000: Error 0x80070005: Failed to secure cache path: C:\ProgramData\Package Cache\
[2E38:3F28][2015-11-20T10:08:44]e000: Error 0x80070005: Failed to secure cache directory: C:\ProgramData\Package Cache\
[2E38:3F28][2015-11-20T10:08:44]e000: Error 0x80070005: Failed to create completed cache path for bundle.
[2E38:3F28][2015-11-20T10:08:44]e000: Error 0x80070005: Failed to cache bundle from path: C:\Users\ZouJian\AppData\Local\Temp\{5fefbd00-3078-41ea-a615-dbcce6a6f135}\.be\AspNet5.ENU.RC1.exe
[2E38:3F28][2015-11-20T10:08:44]e000: Error 0x80070005: Failed to begin registration session.
[1968:3F64][2015-11-20T10:08:44]e000: Error 0x80070005: Failed to begin registration session in per-machine process.
[1968:3F64][2015-11-20T10:08:44]e000: Error 0x80070005: Failed to register bundle.
[1968:3F64][2015-11-20T10:08:44]i399: Apply complete, result: 0x80070005, restart: None, ba requested restart: No
解决方案:
C:\ProgramData\Package Cache\
右键,安全,对Administrators设置完全控制权限即可
但原因不明
Reference:
https://github.com/aspnet/Home/issues/1085#issuecomment-157787917
https://steamcommunity.com/app/266840/discussions/2/558755529944048520/?l=norwegian