On Mar 28, 3:56 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:
> > I'm trying to do something extremely basic, and I don't remember
> > having these problems in XP.
[quoted text clipped - 54 lines]
>
> - Show quoted text -
The sFileStoreLocation is pointing to a new folder that I created,
like "C:\Temp_NEW\MyFolder\". I've given all groups full permissions
on this folder, and yet I still get an error. I could check each
user's temp directory, but I have two issues with that. In Vista, I'm
getting that the path is:
"C:\Users\MyUser\AppData\Local\Microsoft\Windows\Temporary Internet
Files\Virtualized\C\Users\MyUser\AppData\Local\Temp\Low\"
I'm not familiar with virtualized folders, but I went to Temporary
Internet Files and got what I expected (no `Virtualized` folder ;),
but I also went to `C\Users\MyUser\AppData\Local\Temp\Low\`, but I
didn't see anything there either. So, knowing nothing about this is
my first problem. My second problem is that this would mean that I
have to check all user locations for files stored here. Oh, and I'll
want to create my own folder under this, like `MyAppLogs` so that I
can check them on the fly (in service). That's a real pain to have to
do that for each user. I'd like to be able to create a place where
all users can write to, and if the directory happens to get deleted,
that any user can recreate. However, if necessary, I could have the
background service do so (which would be running as system).
Any help? FYI, I'm using the System.IO.Path.GetTempPath() method.
Thanks again.
Willy Denoyette [MVP] - 30 Mar 2008 15:48 GMT
On Mar 28, 3:56 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:
> "thephatp" <chad.a.mor...@gmail.com> wrote in message
>
[quoted text clipped - 60 lines]
>
> - Show quoted text -
The sFileStoreLocation is pointing to a new folder that I created,
like "C:\Temp_NEW\MyFolder\". I've given all groups full permissions
on this folder, and yet I still get an error. I could check each
user's temp directory, but I have two issues with that. In Vista, I'm
getting that the path is:
"C:\Users\MyUser\AppData\Local\Microsoft\Windows\Temporary Internet
Files\Virtualized\C\Users\MyUser\AppData\Local\Temp\Low\"
I'm not familiar with virtualized folders, but I went to Temporary
Internet Files and got what I expected (no `Virtualized` folder ;),
but I also went to `C\Users\MyUser\AppData\Local\Temp\Low\`, but I
didn't see anything there either. So, knowing nothing about this is
my first problem. My second problem is that this would mean that I
have to check all user locations for files stored here. Oh, and I'll
want to create my own folder under this, like `MyAppLogs` so that I
can check them on the fly (in service). That's a real pain to have to
do that for each user. I'd like to be able to create a place where
all users can write to, and if the directory happens to get deleted,
that any user can recreate. However, if necessary, I could have the
background service do so (which would be running as system).
Any help? FYI, I'm using the System.IO.Path.GetTempPath() method.
Thanks again.
Normally all "users" should be able to create folders/files under the root,
which begs the question - are you *sure* you are getting an "Access Denied"
exception when trying to create a folder/file under the root ("C:\"), what
makes you so sure about it?
Don't run a Service as "Administrator", set your service to run in the
"Local Service" account, try to create a folder and a file, this should
work. If it doesn't check the security settings on the root.
Willy.
Willy.