Solved

System.IO.IsolatedStorage with Windows Service

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

772 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