Knowledge Base

Credentials lost inside single-threaded ASP components

Article ID: 168425

Article Last Modified on 6/30/2006


APPLIES TO


This article was previously published under Q168425
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

SYMPTOMS

If a single-threaded Active Server Pages (ASP) component tries to access resources on a remote machine, access may denied to these resources. One example of this scenario would be a Visual Basic 4.0 OLE DLL calling the DIR command on a UNC path. In this scenario, a "Path Not Found" error is returned.

CAUSE

This problem is caused by a limitation in the way Internet Information Server (IIS) uses NT threads to manage single-threaded objects. Because of this limitation, the security credentials are not propagated between threads. As a result, the single-threaded component is operating in the security context of the SYSTEM account. When you try to access resources on other machines, the SYSTEM account is not recognized and access is denied.

RESOLUTION

There are two common workarounds for this problem:

STATUS

This behavior is by design.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:

Keywords: kberrmsg kbthread kbwebserver kbsecurity kbprb KB168425