Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IsolatedStorageFile exception

I try to create IsolatedStorageFile with the following code:

IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication();

but I get the following exception:

IsolatedStoredException 
"Unable to determine application identity of the caller."

What could be the possible reason of this?

like image 531
nan Avatar asked May 16 '26 17:05

nan


1 Answers

If you're seeing this while debugging, you can resolve it by enabling ClickOnce security settings by going to the Security tab in your project's properties. This will simulate the manifest required to have an application identity while debugging.

Note that there is an apparent bug in Visual Studio (at least 2012 Update 4) where even after enabling the security settings it still throws this error. If this happens, close the project and delete the .csproj.user file and then reopen the project.

like image 134
Patrick Quirk Avatar answered May 19 '26 05:05

Patrick Quirk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!