Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: ASP/ADO Coding Error Produces ASP 0115 Error


View products that this article applies to.

Symptoms

When you view an Active Server Pages (ASP) page that uses ADO to access a database, you may find that nothing is written to the page or you may receive the following error message:
error 'ASP 0115'
Unexpected error
/webapp/pagename.asp
A trappable error occurred in an external object. The script cannot continue running.
-or-
Microsoft VBScript runtime (0x800A01C2)
Wrong number of arguments or invalid property assignment: 'fields'
/q203573.asp, line 14

↑ Back to the top


Cause

When authoring Active Server Pages (ASP) pages, it is a common practice to substitute an equal sign for Response.Write. For example, instead of typing the following code
<% Response.Write RS.fields(1) %>
				
you can use the following abbreviation:
<% =RS.fields(1) %>
				
This is very similar to using a question mark instead of the word "Print" in Visual Basic. Leaving out the equal sign as in the following example will produce the above error message:
<% RS.fields(1) %>
				

↑ Back to the top


Resolution

To resolve this problem, insert the equal sign or use the full Response.Write syntax.

↑ Back to the top


Status

This problem is fixed in Microsoft Windows 2000 (Internet Information Services 5.0).

↑ Back to the top


Keywords: kbdatabase, kberrmsg, kbprb, KB203573

↑ Back to the top

Article Info
Article ID : 203573
Revision : 5
Created on : 6/29/2004
Published on : 6/29/2004
Exists online : False
Views : 226