Knowledge Base

PRB: ASP/ADO Coding Error Produces ASP 0115 Error

Article ID: 203573

Article Last Modified on 6/29/2004


APPLIES TO


This article was previously published under Q203573

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

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) %>
				

RESOLUTION

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

STATUS

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

Additional query words: error ASP 0115

Keywords: kberrmsg kbdatabase kbprb KB203573