Solved

System.IO.IsolatedStorage with Windows Service

Posted on 2004-09-13
3
571 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

726 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