繁体   English   中英

IsolatedStorageFile异常

[英]IsolatedStorageFile exception

我尝试使用以下代码创建IsolatedStorageFile

IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication();

但我得到以下异常:

IsolatedStoredException 
"Unable to determine application identity of the caller."

可能的原因是什么?

如果您在调试时看到此信息,可以通过转到项目属性中的“ 安全”选项卡启用ClickOnce安全设置来解决此问题。 这将模拟在调试时拥有应用程序标识所需的清单。

请注意,Visual Studio(至少2012 Update 4)中存在明显的错误,即使在启用安全设置后,它仍然会抛出此错误。 如果发生这种情况,请关闭项目并删除.csproj.user文件,然后重新打开该项目。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM