开发者

Confused with the Isolated Storage with Multiple Assemblies Access

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜