That's your problem. The DLL will run under the IIS user account. You can place the DLL into a COM+ application and run it under a different user account.
>Windows authentication
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer