Article ID: 235644 - Last Review: April 27, 2004 - Revision: 3.1

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

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
This article was previously published under Q235644
Expand all | Collapse all

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:
http://msdn.microsoft.com/vstudio/previous/vinterdev/prodinfo/previous/vid6/articles/ (http://msdn.microsoft.com/vstudio/previous/vinterdev/prodinfo/previous/vid6/articles/)
For additional information about Personal Web Server, click the following article number to view the article in the Microsoft Knowledge Base:
184572  (http://support.microsoft.com/kb/184572/ ) PRB: Creating application with PWS 4.0, Windows 95 and VID

APPLIES TO
  • Microsoft Visual InterDev 6.0 Standard Edition
  • Microsoft Internet Information Server 4.0
Keywords: 
kbctrl kbprb KB235644