PRB: ASP/ADO Coding Error Produces ASP 0115 Error

ID: Q203573


The information in this article applies to:


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 kbGrpASP 
Version           : WINDOWS:1.0,2.0,6.0; winnt:
Platform          : WINDOWS winnt 
Issue type        : kbprb 

Last Reviewed: July 29, 1999