FIX: Opening ASP Page with ActiveX Control Crashes Visual InterDev 6.0 (226498)
The information in this article applies to:
- Microsoft Visual InterDev 6.0
This article was previously published under Q226498 SYMPTOMS
When you open an Active Server Pages (ASP) page that contains an ActiveX Control in Visual InterDev 6.0, Visual InterDev crashes.
CAUSE
By default, the Visual InterDev 6.0 Source Editor attempts to display ActiveX controls graphically. If the source editor is set to display ActiveX controls graphically, and it encounters ASP script in an <OBJECT> or <PARAM> tag, the editor cannot display the control and will crash. Here's an example:
<object classid="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33" height="1" id="rds" width="1">
<param NAME="SQL" VALUE="select * from authors">
<param NAME="Connect" VALUE="DSN=pubs;">
<param NAME="Server" VALUE="http://<% = Request.ServerVariables("SERVER_NAME") %>">
</object>
RESOLUTION
Install Visual Studio 6.0 Service Pack 3.
Open the ASP page in Notepad (or some other text editor) and insert the keyword VIEWASTEXT in the <OBJECT> tag of the ActiveX control. This will cause the control to always be displayed as text, but will allow you to view other ActiveX Controls graphically. For example, using the previous code, this would look similar to the following:
<object VIEWASTEXT classid="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33" height="1" id="rds" width="1">
<param NAME="SQL" VALUE="select * from authors">
<param NAME="Connect" VALUE="DSN=pubs;">
<param NAME="Server" VALUE="http://<% = Request.ServerVariables("SERVER_NAME") %>">
</object>
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
Modification Type: | Major | Last Reviewed: | 10/15/2002 |
---|
Keywords: | kbBug kbDSupport kbVisID600fix kbVS600sp3fix KB226498 |
---|
|