Microsoft KB Archive/194007

= BUG: '800a01f5' Error When Using DTC Event Procedures =

Article ID: 194007

Article Last Modified on 3/16/2005

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q194007



SYMPTOMS
When you use Design-Time control (DTC) event procedures and Visual Basic, Scripting Edition, you might see the following error:

Microsoft JScript runtime error '800a01f5'

Cannot assign to variable

/KBTESTS/_ScriptLibrary/Recordset.ASP, line 97

This happens when you name your DTC with a certain name, most frequently "rs" for recordset DTC.



CAUSE
This error occurs because the name of the event handler conflicts with the name used internally in the Script Library. For example, the event handler is "rs_onbeforeopen" and Recordset.asp uses the same name.



RESOLUTION
Give the DTC a different name than the name used internally in the Script Library. The following list provides the internal names for the DTC's in the Script Library. DTC                INTERNAL NAME --

RECORDSET          RS LABLE               LBL TEXTBOX            TXT LISTBOX            LB CHECKBOX            CHK OPTIONGROUP        OPT BUTTON             BTN RECORDSETNAVBAR    RSNB GRID               DG --



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior

 * 1) Create a Web project.
 * 2) Add a data connection.
 * 3) Add an ASP page and a recordset.
 * 4) Name the recordset "rs", and set it to not automatically open.
 * 5) Make sure the default server scripting language for the page is Visual Basic, Scripting Edition.
 * 6) Add an event handler for the onbeforeopen event.
 * 7) Add code in the "rs_onbeforeopen" event procedure.
 * 8) View the page.

Keywords: kberrmsg kbbug kbscript kbctrl KB194007

-

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

© Microsoft Corporation. All rights reserved.