Re: ASP.NET Custom Identity bad environment !



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.







.



Relevant Pages

  • Re: configuring multiple users in WinXP
    ... testing the Default User profile if errors are reported during ... > I followed your suggestions (configuring the test1 user as I wished, ... > environment of the newly created user was no longer the keyboard ...
    (microsoft.public.windowsxp.setup_deployment)
  • RE: Locally stored profile cannot be loaded problem occuring randomly
    ... they'll be logged in with a temporary profile. ... of users in a domain environment with LOCAL PROFILES, ... Event Source: Userenv ... Windows has backed up this user's profile. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Terminal Services and User Profiles Question
    ... MVP - Directory Services ... This posting is provided "AS IS" with no warranties, ... POOF my my documents properties now shows it on the Server that they ... it no longer shows up in the "local Profile" copy ...
    (microsoft.public.windows.server.active_directory)
  • Re: Terminal Services Roaming Profiles
    ... Make sure that offline caching is turned off on the profile share. ... enable verbose logging of the user ... environment to see exactly where the system is trying to locate the ... MCSE, CCEA, Microsoft MVP - Terminal Server ...
    (microsoft.public.windows.terminal_services)
  • Re: Newbie BPX question
    ... Part of the TCPIP IVP asks if I have a BPX.DAEMON environment. ... profile should exist, or more generic profile, like BPX.**). ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)