PRB: ASP/ADO Coding Error Produces ASP 0115 Error (203573)
The information in this article applies to:
- Microsoft Visual InterDev 1.0
- Microsoft Visual InterDev 6.0
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1 SP2
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
- Microsoft Active Server Pages
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Server 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.
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).
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbDatabase kberrmsg kbprb KB203573 |
---|
|