Last post Jul 26, 2007 10:56 AM by OWScott
Jun 22, 2007 11:22 AM|niravparekh|LINK
I have created a virtual directory pointing to my website folder. Everything works fine. I created an Application Pool and assigned a Domain User to that pool, I assigned application pool to my website( virtual Directory ).
Now in my website, I have few asp pages, which calls some COM Components and then those COM Components call respective dlls to perform tasks. My function under dlls access network folders. I registered COM components using regasm.exe /codebase. So my ASP
pages are calling this using CreateObject.
Now my problem is that in this case, my application pool user is not working and its always running under Anonymous User's account whichever is defined for that website ( virtual directory ), I mean If I change anonymous user ( Right click on virtual directory,
properties, "Directory Security" tab, "Authentication and Access Control" - Edit, and change user for anonymous account ) for my website, then it works fine.
I want to run this application under Application Pool user's account, but it always performs operations under the user which is defined under Anonymous account. Why So? Application pool is working fine with other application, the only difference for this
website is that I am routing my calls through those COM Components.
Can someone tell me what should I do to run my application always under Application Pool account? Why my COM calls always runs under the user which is assigned as Anonymous and not under application pool user?
Thanks in advance,
Jun 23, 2007 04:51 PM|OWScott|LINK
With ASP.NET you can set whether the app pool or the anonymous user is used using Impersonation. (true / false). I don't know how to control it in Classic ASP though. One thing that you can do is in the COM+ component, you can set the user that it runs
under rather than passing through credentials of the calling site. That is available in Components Manager from Administrative tools.
Jun 25, 2007 09:57 AM|niravparekh|LINK
I have tried giving access to the same user ( which was assigned to Application Pool ) to Com+ component, But still it didnt work.
It works only if I assign that user to my virtual directory's anonymous user.
I also though that assigning to Com+ component should work, but it didnt.
Jun 26, 2007 06:29 AM|Steve@Planet|LINK
Do you have any available .NET code that allows you to impersonate the identity used in the app pool?
I wasn't aware that was possible.
Jun 26, 2007 06:52 AM|Steve@Planet|LINK
Here's a link to somedocs on ASP.NET impersonation.
Hope this is helpful.
Jul 26, 2007 10:56 AM|OWScott|LINK