Unable to determine application identity of the caller

Posted by Naimishforu under ASP.NET category on | Points: 40 | Views : 6086
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!!

Comments or Responses

Login to post response