BUG: Access Violation in Internet Explorer When You Use the RDS DataControl (306078)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
- Microsoft Internet Explorer (Programming) 4.01 SP1
- Microsoft Internet Explorer (Programming) 4.01 SP2
- Microsoft Internet Explorer (Programming) 5
- Microsoft Internet Explorer (Programming) 5.01
- Microsoft Internet Explorer (Programming) 5.01 SP1
- Microsoft Internet Explorer (Programming) 5.5
This article was previously published under Q306078 SYMPTOMS
If you try to run the MoveNext method of a Remote Data Service (RDS) DataControl object's Recordset in client-side script (which exists in an HTML or Active Server Pages page), an access violation occurs in Internet Explorer. Users receive the following error message:
Unhandled exception in IEXPLORE.EXE (MSHTML.DLL): 0xC0000005: Access Violation.
This problem only occurs when the RDS DataControl object is bound to a server-side ActiveX Data Objects (ADO) Recordset object in client-side script.
CAUSE
This problem occurs because RDS is a client-side technology and is not designed to work with server-side ADO recordsets. It is not a recommended programming practice to bind an RDS DataControl to a server-side ADO Recordset object. This article is classified as a bug only because Internet Explorer generates an access violation and stops responding (crashes) when you run such code. Ideally, Internet Explorer should be able to trap and report the error without causing an access violation.
RESOLUTION
To work around this problem, open and bind a client-side ADO Recordset to the RDS DataControl. To do this, set the CursorLocation property of the ADO Recordset to adUseClient (ADO Constant value 3) before you open it.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/8/2003 |
---|
Keywords: | kbbug kbfix KB306078 |
---|
|