I had a look at the article, frightening.
What I said in my first response above was you don't have to use a second
thread in order to impersonate. I'm calling COM components with
impersonation from the main thread, and it works - after reading the article
I'm a bit nervous though. In any case, this is what I do
(1) Take off anonymous access to the virtual directory (Internet Services
Manager)
(2) Make the following entry in the web.config file, under the line that
says "<system.web>", put a line
"<identity impersonate="true"/>"
Now you should be able to call the WEB Service from IE already, however, if
you use a Windows app that calls the service, then you may have to call
myService.Credentials = new NetworkCredential(...) or use the
DefaultCredentials.
Note that you can also "hard-code" the UserName/Password in the web.config
file, have a look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxc
onimpersonation.asp
Please let me know if this works, so I can shrug off the nervousness.
> We need our Com components to use a different user than
> the Aspnet account....
[quoted text clipped - 58 lines]
> >
> >.