PRB: '800a0005' Invalid Procedure Call Or Argument When Using the Recordset DTC

ID: Q235644


The information in this article applies to:
  • Microsoft Visual InterDev, version 6.0
  • Microsoft Internet Information Server version 4.0


SYMPTOMS

When viewing 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.


  5. This will set the virtual directory as a Web application and allow the global.asa file to execute when an ASP is accessed.


REFERENCES

Please refer to the following Web site for related Visual InterDev 6.0 articles:

http://msdn.microsoft.com/vinterdev/technical/articles.asp
For additional information about Personal Web Server, click the article number below to view the article in the Microsoft Knowledge Base:
Q184572 PRB: Creating Applications with PWS 4.0, Windows 95 and VID

Additional query words:

Keywords : kbCtrl kbVisID600 kbGrpASP kbDSupport
Version : WINDOWS:6.0; winnt:4.0
Platform : WINDOWS winnt
Issue type : kbprb


Last Reviewed: October 19, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.