我喜欢将用户文件夹与操作系统(C :)放在不同的驱动器(D :)上。阅读以下文章后,我决定尝试一下。
一切都进行得很好,直到我发现我的Windows 8应用程序将不再执行(除了我没有发现任何问题)。我的应用在使用未移动帐户的情况下仍能正常运行。
在事件查看器中,我发现了以下错误消息:
App <Microsoft.MicrosoftSkyDrive> crashed with an unhandled Javascript exception. App details are as follows: Display Name:<SkyDrive>, AppUserModelId: <microsoft.microsoftskydrive_8wekyb3d8bbwe!Microsoft.MicrosoftSkyDrive> Package Identity:<microsoft.microsoftskydrive_16.4.4204.712_x64__8wekyb3d8bbwe> PID:<4452>. The details of the JavaScript exception are as follows Exception Name:<WinRT error>, Description:<Loading the state store failed.
>
, HTML Document Path:</modernskydrive/product/skydrive/App.html>, Source File Name:<ms-appx://microsoft.microsoftskydrive/jx/jx.js>, Source Line Number:<1>, Source Column Number:<27246>, and Stack Trace: ms-appx://microsoft.microsoftskydrive/jx/jx.js:1:27246 localSettings()
ms-appx://microsoft.microsoftskydrive/jx/jx.js:1:51544 _initSettings()
ms-appx://microsoft.microsoftskydrive/jx/jx.js:1:54710 getApplicationStatus(boolean)
ms-appx://microsoft.microsoftskydrive/jx/jx.js:1:48180 init(object)
ms-appx://microsoft.microsoftskydrive/jx/jx.js:1:45583 Application(number, boolean)
ms-appx://microsoft.microsoftskydrive/modernskydrive/product/skydrive/App.html:216:13 Anonymous function(object)
使用ProcMon,我看到很多拒绝访问的消息,如下所示:
Date & Time: 12-9-2012 9:32:20
Event Class: File System
Operation: CreateFile
Result: ACCESS DENIED
Path: D:\Users\John\AppData\Local\Packages\microsoft.microsoftskydrive_8wekyb3d8bbwe\Settings\settings.dat
TID: 2520
Duration: 0.0000149
Desired Access: Read Data/List Directory, Write Data/Add File, Read Control
Disposition: OpenIf
Options: Sequential Access, Synchronous IO Non-Alert, No Compression
Attributes: N
ShareMode: None
AllocationSize: 0
任何想法如何解决这个问题?
我注意到应用程序文件夹,例如:D:\Users\john\AppData\Local\Packages\microsoft.microsoftskydrive_8wekyb3d8bbwe
具有与旧配置文件文件夹不同的所有者。旧的个人资料文件夹以john为所有者,而我的新个人资料文件夹以Administrators组为所有者。不幸的是,更改此设置并没有帮助。
希望您的回答对您有所帮助。干杯!
—
卡罗林格2013年