首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > CAD教程 >

不允许对 IsolatedStorageFileStream 执行操作有关问题

2013-01-02 
不允许对 IsolatedStorageFileStream 执行操作问题这样设置的话,代码: IsolatedStorageFile isf Isolate

不允许对 IsolatedStorageFileStream 执行操作问题
  不允许对 IsolatedStorageFileStream 执行操作有关问题
这样设置的话,代码: IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication();
            Stream stream = new IsolatedStorageFileStream("MyText.txt", System.IO.FileMode.Open, System.IO.FileAccess.Read, isf);
            System.IO.TextReader reader = new System.IO.StreamReader(stream);
            string sLine = reader.ReadLine();
            reader.Close(); // Close the reader
            stream.Close(); // Close the stream
红色代码会提示不允许对 IsolatedStorageFileStream 执行操作问题,出现错误。

假如改为:不允许对 IsolatedStorageFileStream 执行操作有关问题

这样子就没有一点错误,这是为什么呢,没有权限读取txt
[解决办法]
log4 for  silverlight 

热点排行