PRB: ASP/ADO Coding Error Produces ASP 0115 Error

ID: Q203573


The information in this article applies to:
  • Microsoft Visual InterDev, versions 1.0, 6.0
  • ActiveX Data Objects (ADO), versions 2.0, 2.1 SP2
  • Active Server Pages
  • Microsoft Internet Information Server versions 4.0, 5.0


SYMPTOMS

When viewing an Active Server Pages (ASP) page that uses ADO to access a database you may receive the following error:

error 'ASP 0115'
Unexpected error
/webapp/pagename.asp
A trappable error occurred in an external object. The script cannot continue running.


CAUSE

When authoring ASP pages, it is a common practice to substitute an equal sign for Response.Write. For example, instead of typing the following


<% Response.Write RS.fields(1) %> 

You can use the following abbreviation

<% =RS.fields(1) %> 

This is much like 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

Inserting the equal sign or using the full Response.Write syntax will resolve this error.


STATUS

This is by design.

Additional query words:

Keywords : kberrmsg kbADO kbASP kbDatabase kbGrpASP kbGrpMDAC kbDSupport kbRDS210SP2 kbiis400 kbiis500
Version : WINDOWS:1.0,2.0,2.1 SP2,6.0; winnt:
Platform : WINDOWS winnt
Issue type : kbprb


Last Reviewed: December 8, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.