Re: ASP.NET Custom Identity bad environment !
- From: "Olivier Matrot" <olivier.matrot.rte@xxxxxxxxxxxxx>
- Date: Wed, 22 Nov 2006 16:45:19 +0100
I just tried it.
This is weird. There is no error on LoadUserProfile, but the environment
remains unchanged...
"Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uwfpdkkDHHA.4604@xxxxxxxxxxxxxxxxxxxxxxx
Could you also p/invoke into LoadUserProfile to accomplish the same thing?
I haven't tried it...
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
"Dominick Baier" <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:51eb30482a3a8c8dc5be3adede0@xxxxxxxxxxxxxxxxxxxxx
Hi,
yes - you can load it by hand - but i wouldn't really recommend that
because it kind of hacky
do this from the cmdline:
runas /u:youruser /profile cmd.exe
then you have to enter the pwd etc...the profile is loaded as long as the
cmd.exe is living....
don't quote me on that ;)
dominick
Is there a way to have a profile loaded by hand ?
I already know that in IIS7, profiles could be loaded. This is nice.
"Dominick Baier" <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote
in message news:51eb30482a218c8dc4bc95eb600@xxxxxxxxxxxxxxxxxxxxx
Hi,
profiles are not loaded by IIS6
dominick
Hello all,
Environment : Windows 2003/ASP.NET 2.0.
I have changed the process identity of an application pool to a
custom
identity following this link :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnp
ag
2/html/paght000009.asp
This is working partially. The worker process use my custom identity
but do not load the corresponding profile (or fails to do it ?).
Thus,
the environment of the process is inherited from the identity of the
parent process, which is lcoal system.
I need to have a correct profile because, I need to acces the user's
temporary directory. Last but not least, I want to use SQL Express
2005 User Instances. This is not working for the same reason : bad
user profile.
Any help appreciated.
TIA.
.
- References:
- Re: ASP.NET Custom Identity bad environment !
- From: Olivier Matrot
- Re: ASP.NET Custom Identity bad environment !
- From: Dominick Baier
- Re: ASP.NET Custom Identity bad environment !
- From: Joe Kaplan
- Re: ASP.NET Custom Identity bad environment !
- Prev by Date: Re: ASP.NET Custom Identity bad environment !
- Next by Date: Re: ASP.NET Custom Identity bad environment !
- Previous by thread: Re: ASP.NET Custom Identity bad environment !
- Next by thread: Re: ASP.NET Custom Identity bad environment !
- Index(es):
Relevant Pages
|
|