Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

IsolatedStorageException in WebViewRenderer for WinPhone

fpignonfpignon USMember


I use Xamarin.Forms
I have a tabbedPage which displays 2 small webviews (to display simple rich texts content)
I have the following exception that doesn't always occur (roughly 50%) only on win phone (android and ios are fine)

System.IO.IsolatedStorage.IsolatedStorageException: Operation not permitted on IsolatedStorageFileStream.

at System.IO.IsolatedStorage.IsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, IsolatedStorageFile isf)
at System.IO.IsolatedStorage.IsolatedStorageFile.OpenFile(String path, FileMode mode, FileAccess access)
at Xamarin.Forms.WP8PlatformServices._IsolatedStorageFile.OpenFileAsync(String path, FileMode mode, FileAccess access)
at Xamarin.Forms.Platform.WinPhone.WebViewRenderer.d__a.MoveNext()

My assumption is that in the webViewRenderer xamarin tries to save a file, and maybe as I have several webviews, the name of the file might be the same :
string fileName = string.Format("formslocal_{0}.html", (object) DateTime.Now.Ticks);

Can you confirm ? Is there a workaround ?


  • AdamPAdamP AUUniversity ✭✭✭✭✭

    I get the same issue as well, but only if I open and close a page with a webview renderer on it in Windows Phone several times, normally rather quickly.

    Have you submitted a bug report for this yet?

  • JohnHardmanJohnHardman GBUniversity admin

    Just spotted the same exception whilst reviewing analytics in Xamarin Insights. Screenshot attached of the output.

    @AdamP @fpignon - have either of you raised a bug for this? I have no idea what led up to the exception in my case as I am just looking at Insights at the end of the day.

  • AdamPAdamP AUUniversity ✭✭✭✭✭

    @JohnHardman - sorry I haven't issued a bug report on this one. I just got lost in the sea of other bugs I was experiencing. Looking forward to testing out 1.4.3-pre3 though, it has a few of mine fixed.

  • AndreasBrostenAndreasBrosten USMember ✭✭

    Same issue here. Any bug filed yet?

Sign In or Register to comment.