CL1 webserver: <Anantsystems<Ad info>

    AspnetEmail.com   AspNetPro.com

related sites: <FREE Help> <ASP> <Asp.net> <worldwide>  
feedback: <lovethat> <hatethat> <thanks> <credits> <contact us>

MS tree control troubles Table of Contents PrintView CL1
<Previous> Response.redirect to specific frameset

Database/ODBC/OLEDB questions <Next>


       


From: "Smith, Mark" <MSmith@nbpower.com>
Subject: [asp advanced] repost from previously asked "object doesn't support..."

On my development PC (using Vinterdev and IE4) I wrote an ASP page  that uses the MS Treeview control, found in comctl32.ocx. Works fine,  thank you very much. That is, until I test it on another IE3 or IE4  machine. I get the infamous, and not very informative,

Object doesn't support this property or method:
'ActCodes.Treeview1.Nodes'                 (ActCodes is the formname)

error. However, the page works on the other development machines.

Any Ideas? Detective work to date:
1) Comctl32.ocx is regsvr32'd on the not-working machines.
2) Win95 or Win95a are on all machines
3) The .cab file I am using is one I recently downloaded from MS. Odd
name, but it has the files. When I
Regsvr32 /u comctl32.ocx
on the machines, running my app causes the installation of the ocx,
etc., so that part seems to work :-)
4) I did a directory listing on the Windows directory for possible
missing ocx's or dll's, but that seems ok, too.
5) My control info is pretty rudimentary:

...stuff...
<form name="ActCodes">
<OBJECT ID="TreeView1" WIDTH=628 HEIGHT=404
CLASSID="CLSID:0713E8A2-850A-101B-AFC0-4210102A8DA7"
CODEBASE="http://<%= Request.ServerVariables("Server_Name")
%>/activex/cmctlb32.cab">
<PARAM NAME="_ExtentX" VALUE="16616">
<PARAM NAME="_ExtentY" VALUE="10689">
<PARAM NAME="_Version" VALUE="327682">
<PARAM NAME="Style" VALUE="6">
<PARAM NAME="Appearance" VALUE="1">
</OBJECT>
<Script language="vbscript">
...more stuff...

so that doesn't seem to be a possibility.
Mark Smith
Msmith@nbpower.com


From: "Smith, Mark" <MSmith@nbpower.com>
To: "'cc@thebestweb.com'" <cc@thebestweb.com>
Subject: Page 12 of the Unsolved list... unsloved no more!
Date: Mon, 11 May 1998 20:22:01 -0300

Charles-
    I finally figured out the problem with the malfunctioning MS   comctrl32.ocx treeview control.

    I was going to post the answer online, but there doesn't seem to be a  mechanism to respond to the unsolved postings... a bug, or a feature? Story at 11.

Advanced ASP, but I'll hand-hold, anyways...

As you know, in order to use a comctl32.ocx control, you must tell the  page to allow a non-licensed computer to display the control... In  other words, if the machine the page is running on is not, say, a  development machine with VB5 (for example) installed, they do not have a "license" to run the control.

To generate the "license", you need lpk_tool.exe, which is distributed   with the ActiveX SDK, as well as other SDKs.

Unfortunately, I downloaded the lpk_tool.exe bundled with ActiveX SDK, about a 43MB file, WHICH PRODUCED THE WRONG LICENSE NUMBER FOR THE  LICENSE MANAGER!!!! While scanning (I hate the overused "surfing")  some newsgroups, I happened on the correct number. When I edited the line with the license manager code, IT WORKED!

The proper number for the license manager is:
clsid:5220cb21-c88d-11cf-b347-00aa00a28331
Therefore:
-----------------------snip--------------------
<form name="ActCodes">
'    remember, the license manager object is supposed to be the FIRST
object...
<object classid = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331">
    <param name="LPKPath" value="../../activex/MSTree.lpk">
</object>

<OBJECT ID="TreeView1" WIDTH=532 HEIGHT=333
CLASSID="CLSID:0713E8A2-850A-101B-AFC0-4210102A8DA7"
Etc....
-----------------------snip--------------------

The two worthwhile references are:
1)    Article ID: Q159923 from MS support online (which points to the   HUGE Internet Client SDK as the container of the LPK_TOOL file... it  may generate the correct number :-) )

2)    A newsgroup posting.
Microsoft.public.inetexplorer.ie4.activex_contrl (posted 8 May 98),
subject: re: LPK file. Phil Singer tells of the correct ID number. I
cut and pasted, and it worked.


CL1 webserver: <Anantsystems<Ad info>

    AspnetEmail.com   AspNetPro.com

related sites: <FREE Help> <ASP> <Asp.net> <worldwide>  
feedback: <lovethat> <hatethat> <thanks> <credits> <contact us>