Exception exceptionStorageFile

I am trying to create IsolatedStorageFilewith 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 reason for this?

+3
source share
1 answer

If you see this during debugging, you can enable it by enabling the ClickOnce security settings by going to the Security tab in your project properties. This will mimic the manifest needed to identify the application during debugging.

Please note that there is a clear error in Visual Studio (at least 2012 update 4), where even after enabling security settings, it still causes this error. If this happens, close the project and delete the .csproj.user file, and then restart the project.

+2

All Articles