ActiveX .CAB Download Issues
From: Grigs (Grigs_at_discussions.microsoft.com)
Date: 08/30/04
- Next message: Matt Boren: "Re: Script to remove all network printers."
- Previous message: Dr John Stockton: "Re: 15 digit numbers limitation"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 30 Aug 2004 11:15:12 -0700
Hello,
I am having inconsistent luck with creating an ActiveX object on my web
page. This is an IntRAnet site. I have dumbed it down to a test page that I
have below which simply has a button on it that will open the Commond Dialog
box. Specifically the SaveAs dialog box.
It works on my machine which makes sense because I have the Visual Studio
and all of its controls. I am running Windows XP. I have a couple of other
machines I
have tested it on and they work. Those machines are either XP or 2000.
I found a machine that is Windows 2000 and it just took setting a few
security settings to either Enable or Prompt to make it work there. However,
there are two machines (in the small test group I have checked so far) that
just won't load the control. One is 2000 and the other is XP. The 2000
machine is pretty much a bare bones install. I did have to install IE 6
(sp1) on it after reading a couple of articles from the net. No matter what
settings I do for either of these two machines I can not get it to work.
It appears to not be downloading the common dialog control to the users
machine. I have found the following log report which doesn't tell me all that
much. It seems
that it can not find the file. I can go specifically to that URL in the
CODEBASE
and it downloads the file just fine.
ANY Help would be greatly appreciated. This has been many days of trying to
find
this solution with no luck. I seem to get more information but nothing that
really helps. Of course I am sure I can install the .OCX on everyone's
machines but that is really NOT a viable option. And as near as I can tell,
the file should do it on its own.
By the way, the ComDlg32.cab file and the ComDlg32.lpk file are both in the
exact
same folder as the .html file. (Even though the .cab should get it from the
net)
-------------------------------------
*** Code Download Log entry (30 Aug 2004 @ 11:26:33) ***
Code Download Error: (hr = 8007007e) The specified module could not be found.
Operation failed. Detailed Information:
CodeBase:
CLSID: {F9043C85-F6F2-101A-A3C9-08002B2F49FB}
Extension:
Type:
LOG: Reporting Code Download Completion: (hr:8007007e (FAILED), CLASSID:
f9043c85..., szCODE:((null)), MainType:(null), MainExt:(null))
--- Detailed Error Log Follows ---
LOG: Download OnStopBinding called (hrStatus = 800c0007 / hrResponseHdr =
8007007e).
LOG: Redundant download attempted, but no more codebases available.
LOG: URL Download Complete: hrStatus:800c0007, hrOSB:0,
hrResponseHdr:8007007e, URL:(http://activex.microsoft.com/objects/ocget.dll)
LOG: Download OnStopBinding called (hrStatus = 800c0007 / hrResponseHdr =
8007007e).
LOG: Redundant download attempted, but no more codebases available.
LOG: URL Download Complete: hrStatus:800c0007, hrOSB:0,
hrResponseHdr:8007007e, URL:(http://codecs.microsoft.com/isapi/ocget.dll)
LOG: Reporting Code Download Completion: (hr:8007007e (FAILED), CLASSID:
f9043c85..., szCODE:((null)), MainType:(null), MainExt:(null))
-------------------------------------
Actual HTML code here...
<html><head>
<title>Common Dialog Tester</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<script language="vbscript">
Sub SaveAs()
comdlg32.DialogTitle = "Export Items To Where?"
comdlg32.ShowSave
If Err.number = 0 Then
sFileName = ComDlg.FileName
Else
sFileName = ""
End If
End Sub
</script>
</head>
<body>
<input type="button" id="cmndSaveAs" value="Save As..." onclick="SaveAs">
<object classid="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" viewastext
ID="Object1">
<param name="LPKPath" value="comdlg32.lpk">
</object>
<object id="comdlg32" width="0" height="0"
CLASSID="CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB" VIEWASTEXT>
<param name="CancelError" value="1">
<param name="Flags" value="&H1004">
<param name="Filter" value="XML Files (*.xml)|*.xml"
<param name="FilterIndex" value="0"
<codebase="http://activex.microsoft.com/controls/vb6/comdlg32.cab#Version=6,0,84,18">
</object>
</body>
</html>
-- Thanx, Grigs
- Next message: Matt Boren: "Re: Script to remove all network printers."
- Previous message: Dr John Stockton: "Re: 15 digit numbers limitation"
- Messages sorted by: [ date ] [ thread ]