【发布时间】:2026-01-14 16:00:02
【问题描述】:
我正在尝试使用以下代码在独立存储中创建一个文件,
IsolatedStorageFile storageFile = IsolatedStorageFile.GetUserStoreForApplication();
storageFile.CreateFile("Html\\index.html");
但我在做同样的事情时遇到了异常......这说明了。
System.IO.IsolatedStorage.IsolatedStorageException:IsolatedStorageFileStream 上不允许操作
除此操作外不执行任何操作。
【问题讨论】:
-
您是否先创建了
Html文件夹?另外,您确定index.html文件不存在吗?
标签: c# windows-phone windows-phone-8 isolatedstorage isolatedstoragefile