Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

IsolatedStorage question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim Johnson - 04 Jan 2006 00:17 GMT
I've been looking into the use of Isolated Storage and had a few questions:

1. If I use it in a MyIso.dll called by Iso1.exe, in storeadm /list I see
the assembly and domain sections both refer to the path to Iso1.exe.  I
thought from my reading it would refer to MyIso.dll since that's what really
makes the Iso method calls.  If I call it from Iso2.exe, or make a copy of
Iso1.exe somewhere else, it still shows paths to the respective exes (note
the dll is carried along in each of the directories).

2. I've read that if I want to share storage between apps I can sign
MyIso.dll with a strong name.  Then no matter where it's loaded from it
points to the same storage.  But in light of #1, wouldn't use of a
strong-named dll still result in separate references to the exes that use it?

3. If I'm strongly naming MyIso.dll, does it add anything to also install it
into the GAC?  I'm guessing GAC-based dlls are physically only loaded once,
whereas non-GAC strongly-named MyIso.dll would load more than once but still
refer to the same Iso storage directory.

Thanks!
Tim Johnson - 09 Jan 2006 19:32 GMT
I figured out my 1st 2 problems.  I'd been using the EntLib caching block,
which in turn uses isolated storage.  I didn't realize under the covers it
was get a "store" by calling the GetUserStoreFromDomain() api call, which
always gives separate stores for 2 different exes.  If I switched that to
GetUserStoreForAssembly() instead, AND have the EntLib be signed
(strong-named), then

a) storeadm /list shows only a single partition, and it refers to the dll
that uses the Iso apis, not the exe

b) The exe doesn't have to be signed, and if you have 2 exes that use the
signed EntLib from 2 different load locations, they both use the same
isostorage partition, which is what I was after.

Still not sure about the GAC - the above works whether the signed EntLib is
in the GAC or not, but I assume there's a performance gain if it's in the GAC
and used by multiple apps.

> I've been looking into the use of Isolated Storage and had a few questions:
>
[quoted text clipped - 16 lines]
>
> Thanks!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.