[Mono-bugs] [Bug 686511] New: IsolatedStorageFile.GetUserStoreForApplication fails with "NotSupportedException: Linked away"
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Apr 10 22:44:40 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=686511
https://bugzilla.novell.com/show_bug.cgi?id=686511#c0
Summary: IsolatedStorageFile.GetUserStoreForApplication fails
with "NotSupportedException: Linked away"
Classification: Mono
Product: MonoTouch
Version: SVN
Platform: iPad
OS/Version: Apple iOS 4.3
Status: NEW
Severity: Major
Priority: P5 - None
Component: Tools
AssignedTo: gnorton at novell.com
ReportedBy: sean at jellyfish.co.nz
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64;
Trident/5.0)
MonoTouch 4.0.0 on iPad with iOS 4.3.1.
MonoDevelop 2.4.2 with all Updates.
Calling
System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication works
fine in the iPhone Simulator, but fails on a device, due to being 'linked
away'.
Reproducible: Always
Steps to Reproduce:
1. Create a new iPhone OpenGL Project
2. Call IsolatedStorageFile.GetUserStoreForApplication, e.g. from
AppDelegate.OnActivated.
Actual Results:
Exception thrown:
System.NotSupportedException: Linked away
at System.Reflection.Assembly.UnprotectedGetEvidence () [0x00000] in
<filename unknown>:0
at System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication
() [0x00000] in <filename unknown>:0
at TestIsf.AppDelegate.OnActivated (MonoTouch.UIKit.UIApplication app)
[0x00000] in /Users/sean/Projects/TestIsf/Main.cs:39
Expected Results:
IsolatedStorageFile instance should be returned instead.
Code sample:
public override void OnActivated (UIApplication app)
{
try {
var isf = IsolatedStorageFile.GetUserStoreForApplication();
} catch (Exception ex) {
Debug.WriteLine(ex.ToString());
throw;
}
glView.Stop ();
glView.Run (60.0);
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list