Using the AutoSession Object from ASP Files External to CMS 2001 (302054)



The information in this article applies to:

  • Microsoft Content Management Server 2001, when used with:
    • the operating system: Microsoft Windows NT 4.0
  • NCompass Resolution 4.0, when used with:
    • the operating system: Microsoft Windows NT 4.0

This article was previously published under Q302054

SYMPTOMS

When you access the Autosession object from a file-based Active Server Pages (ASP) script, you may receive the following error message in the browser:
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
/testx.asp, line 11

CAUSE

The ASP script that uses Autosession is not in a subdirectory of the NCompass Resolution (NR) root.

WORKAROUND

To work around this problem, do either of the following:
  • Enable the Microsoft Content Management Server (MSCMS) 2001 server ID as the anonymous access user for that subdirectory. -or-

  • Place your scripts in a subdirectory of the NR root.
The second option is preferable; create a new subdirectory of the NR root directory and place any external scripts there. If you did a default installation, this directory is mapped to /Program Files/Microsoft Content Management Server/Server/httpexec/.

MORE INFORMATION

Any file-based ASP scripts that need the Autosession objects should have the following server-side include at the top of the file:

<!--#include virtual="/NR/System/Access/Resolution.inc"-->

This creates the Autosession for the external script. You don't need this in a Content Management Server template, because this is automatically created for all navigation or page templates.

The physical location of the external file is significant. If you try to access an ASP script that uses Autosession and it is not in a subdirectory of the NR root, you receive an authorization error.

Modification Type:MajorLast Reviewed:11/17/2003
Keywords:kbprb KB302054