472,961 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,961 software developers and data experts.

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

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 '06 #1
4 4725
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...b;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
Apr 6 '06 #2
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 ... :o(.

Martin.
Apr 7 '06 #3
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[i].outerHTML = elements[i].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.
Apr 20 '06 #4
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[i].outerHTML = elements[i].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.
Apr 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: HarryD | last post by:
Hello, Maybe someone can help? According to ms kb-article 183329 i am trying to populate a treeview object on a asp-page, with realtime data from a accessdatabase. The database routine works...
1
by: Access User | last post by:
I'm looking for complete documentation for the activex component "TreeView" in Access. I need a complete list of methods and properties, if such a thing exists. Paul
42
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
0
by: Mike Preston | last post by:
Warning - long message. Many thanks for making the A97 version of the treeview w/o activex controls available. I have taken it down a different path and ended up doing almost everything...
0
by: imassadpk | last post by:
Hi all, Apprecite your help in resolving this tricky issue... I am trying implementing Recurrsive TreeView in MS. Access 2003 ADP project. So far, no luck :( The Problem: This sample...
5
by: Charlie | last post by:
Hi: I would like to implement a TreeView Control in a web page. Is this done with scripting or does it require an ActiveX control? Can someone point me in right direction? Thanks, Charlie
3
by: Jeffery Franzen | last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app. I do the add...
2
by: Tymbow | last post by:
I'm building a web application that is analogous to the Windows XP file explorer in function. The left column contains a TreeView, and the right column a DataGrid populated by selecting TreeView...
4
by: Martin | last post by:
I have a treeview control, which is docked on a panel. When I call the procedure to fill this treeview from the load event it works fine. It loads all nodes, and displays them nicely. However,...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.