?
Solved

System.IO.IsolatedStorage with Windows Service

Posted on 2004-09-13
3
Medium Priority
?
574 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 1000 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 1000 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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

752 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