Err : Unable to determine application identity of the caller [Resolved]

Posted by Naimishforu under ASP.NET on 2/7/2011 | Points: 10 | Views : 11766 | Status : [Member] [MVP] | Replies : 2
I'm trying to store some data in Isolated Storage through an ASP.NET Web Page.

This particular code below,

Using isoStore = IsolatedStorageFile.GetUserStoreForApplication()


is giving me below error :(

Err : Unable to determine application identity of the caller

Any idea to resolve this??

Please kindly do not post to links. Please provide the solution if you have. Thanks.

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/



Responses

Posted by: Naimishforu on: 2/7/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down

Resolved
Ok, I got the answer :)

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.

Hehe...Thanks :D

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 2/7/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down

Resolved
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!! :)

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response