Solved

System.IO.IsolatedStorage with Windows Service

Posted on 2004-09-13
3
564 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

820 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