开发者

Confused with the Isolated Storage with Multiple Assemblies Access

开发者 https://www.devze.com 2023-02-01 17:43 出处:网络
I googled and searched a lot, but I got no luck. I have a WindowsFormsApplication.exe and ConsoleApplication.exe.I want both of them t开发者_StackOverflow社区o access to the same IsolatedStorage, is

I googled and searched a lot, but I got no luck.

I have a WindowsFormsApplication.exe and ConsoleApplication.exe. I want both of them t开发者_StackOverflow社区o access to the same IsolatedStorage, is it possible?

I tried using this in ConsoleApplication.exe:

IsolatedStorageFile isoStore = IsolatedStorageFile.GetMachineStoreForApplication();

but I got:

IsolatedStorageException: Unable to determine application identity of the caller.

How can I fix this? Or can I use this way?

P.S.: This is NOT a ClickOnce app.


You should use IsolatedStorageFile.GetUserStoreForSite()

More on that here.. http://www.silverlightshow.net/items/Caching-of-in-and-around-your-Silverlight-application-part-2.aspx

Hope that helps :) Pooran

0

精彩评论

暂无评论...
验证码 换一张
取 消