Microsoft KB Archive/235644

= PRB: '800a0005' Invalid procedure call or argument when you use the Recordset DTC =

Article ID: 235644

Article Last Modified on 4/27/2004

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition
 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q235644



SYMPTOMS
When you view an Active Server Page (ASP) that contains a Recordset Design-Time Control (DTC) and the Recordset DTC specifies in the Database Object combo box as DE Commands, the following error might occur:

Microsoft JScript runtime error '800a0005'

Invalid procedure call or argument

/Project6/_ScriptLibrary/pm.asp, line 161



CAUSE
This error might occur when the global.asa file of the Web project is not executing. Line 161 of the pm.asp file contains a reference to an application variable, Application('DE'), defined in the global.asa file. When the global.asa file is not executing, the Application('DE') becomes undefined and the above error occurs.



RESOLUTION
To resolve this error, set the virtual directory where the Web project resides as a Web application. The following steps show how to create a Web application for the Web project's virtual directory:
 * 1) Open Microsoft Management Console (Start -> Programs -> Windows NT 4.0 Option Pack -> Microsoft Internet Information Server -> Internet Service Manager).
 * 2) Locate the virtual directory where the Web project resides under Internet Information Server.
 * 3) Right-click the virtual directory and select Properties.
 * 4) On the Virtual Directory tab, click the Create button in the Application Settings section and then click the OK button. This will set the virtual directory as a Web application and allow the global.asa file to execute when an ASP is accessed.

