PRB: Access Denied Error When Calling LogonUser APIID: Q223334
|
When attempting to make a Win32 Application Programmer Interface (API) call LogonUser from within a Visual Basic Component Object Model (COM) component with Active Server Pages (ASP), one of the following errors appears:
'5' - "Access Denied."
'1314' - "A required privilege is not held by the client."
The Internet Information Server (IIS) authenticated user that is making the request to LogonUser does not hold the correct privilege, which causes LogonUser to fail.
If your component is in-process, you can create a Microsoft Transaction Server (MTS) package to host your COM component, which will handle the security context switching for you.
For additional information on how to create an empty package and add components to it, please see the following
article in the Microsoft Knowledge Base:
Q223406 HOWTO: Create an Empty MTS Package to Add Components for ASPAn alternative resolution is to use the following Win32 APIs:
This behavior is by design.
Additional query words:
Keywords : kbCOMt kbVBp kbVBp500 kbVBp600 kbGrpASP
Version : WINDOWS:5.0,6.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 13, 1999