MS Treeview from ASP issue after IE ActiveX update (kb912945)

Discussion in 'ASP General' started by hsonny@gmail.com, Apr 3, 2006.

  1. Guest

    Hi there,

    I have an ASP page using the treeview control from mscomctl.ocx that
    was running just fine. We updated our browsers with this package (
    details at http://support.microsoft.com/kb/912945/en-us) so I get
    "Unhandled exception at 0x275888cf in IEXPLORE.EXE: 0xC0000005: Access
    violation writing location 0x0000000b."


    The other mscomctl.ocx's controls (ListView, MonthView, ImageList...)
    are still working fine.


    that's the code:
    <OBJECT id=tvwPasta
    classid="clsid:C74190B6-8589-11D1-B16A-00C0F0283628" width="100%"

    height="235"
    CODEBASE="http://<myserver>/mscomctl.cab#Version=6,1,97,82"
    viewastext>
    <PARAM NAME="_ExtentX" VALUE="7303">
    <PARAM NAME="_ExtentY" VALUE="6138">
    <PARAM NAME="_Version" VALUE="393217">
    <PARAM NAME="HideSelection" VALUE="1">
    <PARAM NAME="Indentation" VALUE="700">
    <PARAM NAME="LabelEdit" VALUE="1">
    <PARAM NAME="LineStyle" VALUE="1">
    <PARAM NAME="PathSeparator" VALUE="">
    <PARAM NAME="Sorted" VALUE="0">
    <PARAM NAME="Style" VALUE="7">
    <PARAM NAME="ImageList" VALUE="">
    <PARAM NAME="BorderStyle" VALUE="0">
    <PARAM NAME="Appearance" VALUE="1">
    <PARAM NAME="MousePointer" VALUE="0">
    <PARAM NAME="Enabled" VALUE="1">
    <PARAM NAME="OLEDragMode" VALUE="0">
    <PARAM NAME="OLEDropMode" VALUE="0">
    </OBJECT>


    Any idea? Thanks in advance for any help.


    Sonny.
     
    , Apr 3, 2006
    #1
    1. Advertising

  2. Richard Guest

    Sonny,

    I had a similar problem and was advised to clear my cache, history etc and
    restore IE to defaults. This fixed it after restarting. XP.

    I think the actual problem is if you have Disable Script Debugging unchecked
    in your Advanced settings. The download page
    (http://support.microsoft.com/default.aspx?scid=kb;en-us;912945) has a
    section which says

    "External script technique does not work when the "Disable Script Debugging
    (Internet Explorer)" check box is cleared"

    but does not make clear that it will crash IE.

    Regards,

    Richard
     
    Richard, Apr 6, 2006
    #2
    1. Advertising

  3. Hi Sonny,

    I had the same problem. I try to clear cache, history and so on, but IE
    crash continuosly. I try uninstall the KB912945 (Control Panels -->
    Add/Remove Installed Programs (check the "Show Updates")) and problem solved.

    But I don't know, how I fix this problem on the customes computers ... :eek:(.

    Martin.
     
    Martin STARZYK, Apr 7, 2006
    #3
  4. JayLock Guest

    Had the same issue when I installed KB912945. MSCOMCTL.OCX failed.
    Uninstalled and it worked. Here is the work around I put in place to solve
    the issue with KB912945 installed:

    I but the Treeview in a <div id="div1" style="DISPLAY: none">, then set the
    div to block, div1.Style.Display="block", in the Window_OnLoad() event. This
    solves the IE Crash.

    Also, I had to write a script to activate the controls on load. So I added
    this just before the </BODY> tag:

    <!-- Fix for IE Patch 912945 -->
    <script language="JavaScript" src="ActivateActiveXControls.js"></script>
    </BODY>

    And here are the contents of the script:

    function fnRewriteElements(strTagName)
    {
    var elements = document.getElementsByTagName(strTagName);
    for (var i = 0; i < elements.length; i++)
    {
    elements.outerHTML = elements.outerHTML;
    }
    }

    function fnActivateControls()
    {
    fnRewriteElements('object');
    fnRewriteElements('applet');
    fnRewriteElements('embed');
    }

    // Some pages may require a pause before this script
    // is executed. This is required if the controls take
    // longer to load then the page. If that is the case
    // use the following method to create a pause before
    // the script is executed.
    //window.setTimeout("fnActivateControls()", 50);

    // Comment this out if you are using the setTimeout() method.
    fnActivateControls();


    Works like a champ now.
     
    JayLock, Apr 20, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TWljaGFlbA==?=

    How to update datagrid after update

    =?Utf-8?B?TWljaGFlbA==?=, Mar 17, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    510
    Alex D.
    Mar 17, 2006
  2. Replies:
    0
    Views:
    900
  3. vml
    Replies:
    0
    Views:
    1,066
  4. Ionutz
    Replies:
    2
    Views:
    546
    Ionutz
    Oct 23, 2005
  5. Stephan Kämper
    Replies:
    1
    Views:
    155
    Assaph Mehr
    Jul 15, 2006
Loading...

Share This Page