首页 新闻 赞助 找找看

wp/silverlight 中使用IsolatedStorageSettings,为何频繁抛出“Operation not permitted on IsolatedStora

0
悬赏园豆:10 [待解决问题]

wp/silverlight 中使用IsolatedStorageSettings中,为何频繁抛出 Operation not permitted on IsolatedStorageFileStream 异常?

 

IsolatedStorageSettings _isolatedStorageSettings = IsolatedStorageSettings.ApplicationSettings;

这句代码在静态构造方法里面,运行时频繁会抛出“类型初始化错误”,然后调试查看内部异常就是:Operation not permitted on IsolatedStorageFileStream 

 

 

何故??

~冻结~的主页 ~冻结~ | 初学一级 | 园豆:39
提问于:2013-09-03 00:56
< >
分享
所有回答(2)
0

 创建文件时    首先检查文件所在的目录是否存在  如果不存在会引发Operation not permitted on IsolatedStorageFileStream 异常。???

给你具体参考;http://www.cnblogs.com/boypig/archive/2011/10/20/2218990.html

http://stackoverflow.com/questions/12625910/getting-operation-not-permitted-on-isolatedstoragefilestream-saving-jpg

Beyond-bit | 园豆:2885 (老鸟四级) | 2013-09-03 09:42
0
dudu | 园豆:31075 (高人七级) | 2013-09-03 17:53
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册