I have a Web Service (.Net Framework 1.1) which throws a thread, and I need that thread run as a specific user.
I wrote in web.config file
<identity impersonate="true" userName="specificuser" password="thepass" />
I set in IIS the anonymouse user as "specificuser"
I set in machine.config
<identity impersonate="false" userName="specificuser" password="thepass"/>
If I run System.Security.Principal.WindowsIdentity.GetCurre nt() in the web services it is the correct user "specificuser", but if I run it in the thread it is always aspnet user.
How can I force to the thread to run with the specific user?
Thanks in advance
http://www.hhdirecto.net
http://www.dechiste.com