Error : Unable to determine application identity of the caller (Tips & Tricks)

Hi Frds,

This is just a part of Tips & Tricks you can use 🙂

I was trying to store some data in Isolated Storage through an ASP.NET Web Page.

I have used the below code,

Using isoStore = IsolatedStorageFile.GetUserStoreForApplication()

This particular line of code was giving me below error 😦

Error : Unable to determine application identity of the caller

But luckily, before I go in deep and try to fight with this error, I got the solution 🙂

Application scoped isolated storage is only available if your program is running as a ClickOnce application. If it is not, you’ll get an IsolatedStorageException when you call GetUserStoreForApplication which says “Unable to determine the application identity of the caller.

So now, instead of using above code, change your code as per below to make your application work 🙂

Dim isoStore As IsolatedStorageFile

isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User Or _           IsolatedStorageScope.Assembly Or IsolatedStorageScope.Domain, Nothing, Nothing)

Thanks Frds!! Hav fun!! 🙂

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: