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



The information in this article applies to:

  • Microsoft Visual InterDev 6.0
  • 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.

REFERENCES

For related Visual InterDev 6.0 articles, visit the following MSDN Web site: For additional information about Personal Web Server, click the following article number to view the article in the Microsoft Knowledge Base:

184572 PRB: Creating application with PWS 4.0, Windows 95 and VID


Modification Type:MajorLast Reviewed:4/27/2004
Keywords:kbCtrl kbprb KB235644