BUG: '800a01f5' Error When Using DTC Event Procedures (194007)



The information in this article applies to:

  • Microsoft Visual InterDev 6.0

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.

MORE INFORMATION

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.

Modification Type:MinorLast Reviewed:3/16/2005
Keywords:kbBug kbCtrl kbDSupport kberrmsg kbScript KB194007