Microsoft KB Archive/226498

= FIX: Opening ASP Page with ActiveX Control Crashes Visual InterDev 6.0 =

Article ID: 226498

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



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  or  tag, the editor cannot display the control and will crash. Here's an example:    ">



RESOLUTION
Install Visual Studio 6.0 Service Pack 3.

-or-

Open the ASP page in Notepad (or some other text editor) and insert the keyword VIEWASTEXT in the  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:

   ">



STATUS
Microsoft 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:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed

<div class="moreinformation_section">

Steps to Reproduce Behavior
First, ensure that Visual InterDev is configured to display controls graphically by default, then do the following:

<ol> <li>Create a new ASP page in Visual InterDev.</li> <li> Paste the following code in the page: <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") %>"> </li> <li>Save the ASP page and re-open the page in Visual InterDev.</li></ol>

Keywords: kbbug kbfix kbvisid600fix kbvs600sp3fix KB226498

-

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

© Microsoft Corporation. All rights reserved.