Solved

System.IO.IsolatedStorage with Windows Service

Posted on 2004-09-13
3
555 Views
Last Modified: 2008-02-01
When running a Windows Service, a Web Application in IIS, or a Web Service in IIS, where path does IsolatedStorage use?
0
Comment
Question by:eternal_21
3 Comments
 
LVL 37

Assisted Solution

by:gregoryyoung
gregoryyoung earned 250 total points
ID: 12046439
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconIntroductionToIsolatedStorage.asp

the important part of this is ....

"When using isolated storage, applications save data to a unique data compartment that is associated with some aspect of the code's identity, such as its Web site, publisher, or signature. The data compartment is an abstraction, not a specific storage location; it consists of one or more isolated storage files, called stores, which contain the actual directory locations where data is stored."

when usin g isolated storage there is no guarentee that the data will reside in a given place.
0
 
LVL 5

Accepted Solution

by:
tomasX2 earned 250 total points
ID: 12046491
just making an (un)educated guess but depending on you scope settings
isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null);  
for isolated storage the actual files are stored in C:\Documents and Settings\<UserName>\Local Settings\Application Data\IsolatedStorage folder...

so for the service account that web app or service is running in would probably be
C:\Documents and Settings\serviceAccount\Local Settings\Application Data\IsolatedStorage folder...

or might be

C:\Documents and Settings\<machineName>\ASPNET\Local Settings\Application Data\IsolatedStorage folder...

Depends on what scope you put in and who is running the service.
isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null);  
it will get a store for the running user for this assembly... check out this article on isolation.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconIntroductionToIsolatedStorage.asp
0
 
LVL 10

Author Comment

by:eternal_21
ID: 12049807
Thank you both!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now