Operation not permitted on IsolatedStorageFileStream: Visual Studio 2010 Express for Phone


I am having this error: "Operation not permitted on IsolatedStorageFileStream." I am using visual studio 2010 express for phone c#.

Here is my code:

public void LoadData() { string xmlUrl = "http://datastore.unm.edu/events/events.xml"; using (IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForApplication()) { using (var isoFileStream = new IsolatedStorageFileStream(xmlUrl, FileMode.Open, FileAccess.ReadWrite, FileShare.Read, storage)) { using (XmlReader xreader = XmlReader.Create(isoFileStream)) { } } } }

Thank you for your help! It's much appreciated.


if you want to read a xml from the web you should use the WebClient class. WebClient provides common methods for sending data to and receiving data from a resource identified by a URI.

Here's a little example

private WebClient webClient; public Example() { webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(DownloadStringCompleted); webClient.DownloadStringAsync(new Uri("http://datastore.unm.edu/events/events.xml", UriKind.Absolute)); } private void DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) { XElement Xmlparse = XElement.Parse(e.Result); }

as you can see we use DownloadStringCompletedHandler that occurs when an asynchronous resource-download operation completes.

Finally to parse the XML you can use XElement class <a href="http://www.dotnetperls.com/xelement" rel="nofollow">more informartion here</a>


  • Delete an isolated storage file
  • What happens to an open Filestream if it is not close due to program crash?
  • How to add paragraph wise texts separated by vertical line into itextsharp created PDF
  • How to avoid OutOfMemoryException while loading large chunks of data from a database?
  • Github ERROR: Repository not found (yes, another one)
  • The process cannot access the file because it is being used by another process
  • Uploading file with WCF streaming, tiny reads from stream
  • Dealing with XElement null value
  • Updates to SolrConfig.xml file are not being reflected
  • How to check disabled jobs with Jenkins server?
  • Android NFC read Tags issue. Activity starts each time on data received
  • Android - VerifyError
  • Phonegap GA plugin not working
  • how to ignore xml namespaces?
  • Activity overlaying. WindowManager.LayoutParams
  • iOS Cordova first plugin - plugin.xml to inject a feature
  • Splash Screen will not display
  • Doctrine/Symfony entity generator and generating entity from one table
  • Xamarin Android | Layout style
  • Setting the run time properties on SpringApplicationBuilder()
  • Enabling DTD support in Sql Server
  • jQuery Orbit - How to make a Random Slideshow?
  • where do I find the xml.dom python package for the python-2.6.0-8.9.28 and I have a suse/x86_64 vers
  • How to get current document uri in XSLT?
  • Xcode 4 NSLog Macro link in Xcode 3
  • Play WS (2.2.1): post/put large request
  • Bad request using file_get_contents for PUT request in PHP
  • How to redirect a user to a different server and include HTTP basic authentication credentials?
  • Deserializing XML into class C#
  • Can I make an Android app that runs a web view in Chrome 39?
  • Can I have the cursor start on a particular column by default in jqgrid's edit mode?
  • Can a Chrome extension content script make an jQuery AJAX request for an html file that is itself a
  • Is there a mandatory requirement to switch app.yaml?
  • How to delete a row from a dynamic generate table using jquery?
  • using HTMLImports.whenReady not working in chrome
  • LevelDB C iterator
  • Linking SubReports Without LinkChild/LinkMaster
  • Authorize attributes not working in MVC 4
  • EntityFramework adding new object to nested object collection
  • How to Embed XSL into XML