Microsoft KB Archive/203573

= PRB: ASP/ADO Coding Error Produces ASP 0115 Error =

Article ID: 203573

Article Last Modified on 6/29/2004

-

APPLIES TO


 * Microsoft Visual InterDev 1.0 Standard Edition
 * Microsoft Visual InterDev 6.0 Standard Edition
 * Microsoft ActiveX Data Objects 2.0
 * Microsoft ActiveX Data Objects 2.1 Service Pack 2
 * Microsoft ActiveX Data Objects 2.5
 * Microsoft ActiveX Data Objects 2.6
 * Microsoft ActiveX Data Objects 2.7
 * Microsoft Active Server Pages 4.0
 * Microsoft Internet Information Server 4.0
 * Microsoft Internet Information Services 5.0
 * Microsoft Data Access Components 2.5
 * Microsoft Data Access Components 2.6
 * Microsoft Data Access Components 2.7

-



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

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.