Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can´t run an Activex Control over my intranet

Status
Not open for further replies.

IMotion

Programmer
Mar 13, 2001
6
0
0
BR
Hello people!
I created an intranet at my company by using a W2K Server and some W98 workstations. A Domain called SINPROSERVER was created too.
Using VB6 I created an OCX Control intending to use it like a Customer Registration App that would be accessed by all computers over my intranet.
Using FrontPage 2000 + Interdev I created the Web solution for my intranet and inserted the activex control I´ve created in one of the solution´s html pages.
Here is the problem:
When I type the URL of the page with the control at the development machine (that is my server)I can see the control running perfectly, but when I do the same at any client machine I can´t see the control.
Thinking that it would be a registration issue, I created a setup program to install the control over the client machines, but I still can´t see it working.
 
There may be several reasons to this. Maybe the url provided in 'CODEBASE' attribute is not correct. Also it is possible that the security settings of browser does not allow the client machines to download unsigned ActiveX controls to their machines.
Mohammad Mehran Nikoo, MCP
mohmehran@yahoo.com
 
oh my god....

You just that wrong....

codebase...... It's from Ocx's filepath.....

do you O.K?

for examples:

You maybe should allocate your Ocx's or cab File path in

your file extension
 
Oh sorry!
I wrote my codebase address wrong!
Actually it´s not pointing to that .html file but to the .ocx file I´ve created!
Like this:
CODEBASE="
I did it and it´s not running yet!

Any other solution?
 
I am afraid you would not be able to make your application
work there is millions of us all over the world with the same issue for some reason the application runs great in your machine but when it gets deployed to the server
the application is worthless

If you get lucky please reply to this message
with what you did


Good luck!!!
 
I created a setup program using the package and deployment tool to install the control over the client machines.
After the installation the control got running perfectly.
I´m still trying to make the installation by downloading the control, but if I get no success the setup program could be a good way to solve the problem.
 

You want to run the Package and Deployment Wizard to create an internet package. This will create a .cab file containing the relevant deployment files.

The codebase parm should reference the cab file, e.g.
CODEBASE="RTFWeb.CAB#version=1,0,0,1"

If you need addition info on how to call the object in your htm or asp page, look at the .htm file created by the PDW. It contains the necessary code.
 
hello everybody,
i have a problem like ODominio,
i developed an application with interdev and i use
treeview activex control what must i write for codebase attribute??
thanks.....
 
Depending on what controls you are using you may have to include a LicencePack object as well

EG

Code:
<HTML>
<HEAD>
<TITLE>Some Page</TITLE>
</HEAD>
<BODY>

<OBJECT CLASSID=&quot;clsid:5220cb21-c88d-11cf-b347-00aa00a28331&quot;>
    <PARAM NAME=&quot;LPKPath&quot; VALUE=&quot;comdlg.lpk&quot;>
</OBJECT>

<OBJECT ID=&quot;CommonDialog1&quot; WIDTH=32 HEIGHT=32
    CLASSID=&quot;CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB&quot;
    CODEBASE=&quot;[URL unfurl="true"]http://activex.microsoft.com/controls/vb5/comdlg32.cab&quot;>[/URL]
</OBJECT>

</BODY>
</HTML>

You can download the required tool from Microsoft to create the LPK file
Billy H

bhogar@acxiom.co.uk
 
thanks thanks for your kind help,
one question more,
if we use microsoft's activex control components such as common diaolg , or windows common controls,
do we have to paid money to microsoft?
thanks again...
 
Like many others it seems I have a similar problem. When I'm an administrator on a w2k PC I can download an ActiveX control over my intranet. However, if a normal user tries it the contents of the OBJECT tag seems to be ignored, no matter how low the security setting is.

Any ideas?????
 
You browser security setting will allow you to download an ActiveX, but this is not allways the problem. ActiveX's have to be registerd to be able to be used and if the users PC security does not allow this then it will result in the object Tag seeming to be ignored.

One way to test this theory is to log on to a users PC as and Administrator and try your app. This should download and register Your ActiveX Billy H

bhogar@acxiom.co.uk
 
Thanks for your reply.

That is exactly what happens. However it has been requested that normal users be able to download and use the control. Do you know how I can accomplish this.

Cheers
 
I THINK one way would be to modify the user policy rights and add the right to 'load and unload device drivers'

You will probably find that anyone that is in either the Administartors Group or the Power users group all ready has permisions to do what you are after

I hope this help (It is along time scince I did any NT admin)

X-) Billy H

bhogar@acxiom.co.uk
 
Hi All
It seems as due i have the same problem.
All the below is referred to an ADMIN user.
My control name is K2kinstaller.ocx,which was created with
VB6 and is exported with a CAB file.
The html file i use has the following code:

Code:
<HTML>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1255&quot;>


<BODY>
<SCRIPT FOR=window EVENT=onload LANGUAGE=&quot;JScript&quot;>
  window.moveTo(0,0) ;
  window.resizeTo(window.screen.width,window.screen.height);
</SCRIPT>
<center><br><br><br><br>
<object width=480 height=313 id=KissInstallerOb
CLASSID=&quot;CLSID:8293D586-B0E2-494E-89DC-ADDCDA153B3E&quot;
CODEBASE=&quot;K2KInstaller.CAB#version=1,3,0,164&quot;>
	<PARAM NAME=&quot;UpdateURL&quot; VALUE=&quot;[!KISS-ROOT!]outgoing\Update.exe&quot;>
	<PARAM NAME=&quot;TransformURL&quot; VALUE=&quot;[!KISS-ROOT!]outgoing\New Transform.mst&quot;>
	<PARAM NAME=&quot;InstallURL&quot; VALUE=&quot;[!KISS-ROOT!]outgoing\KISS Client.msi&quot;>

</object>
</center>
</BODY>
</HTML>

The [!KISS-ROOT!] is replaced programaticly.
If the ini file will help i can post it.
The ocx control has a few dependencies as well.
Like VBRun60.cab which is downloaded from the web,
and ComCtl32.cab which also is downloaded from the web
And another ocx on the 'user control' it self.
I can find all the registries entries in the registry.
(I think)
On the development machine all is working well.
So what could be the problem?

Any help would be just great.
Yoav






The ini file for this CAB has the following code:
;INF file for K2KInstaller.ocx
;DestDir can be 10 for Windows directory, 11 for Windows\System(32) directory, or left blank for the Occache directory.

[version]
signature=&quot;$CHICAGO$&quot;
AdvancedINF=2.0

[DefaultInstall]
CopyFiles=install.files
RegisterOCXs=RegisterFiles
AddReg=AddToRegistry

[RInstallApplicationFiles]
CopyFiles=install.files
RegisterOCXs=RegisterFiles
AddReg=AddToRegistry
[DestinationDirs]
install.files=11

[SourceDisksNames]
1=%DiskName%,K2KInstaller.CAB,1

[Add.Code]
K2KInstaller.ocx=K2KInstaller.ocx
iobjsafe.tlb=iobjsafe.tlb
K2KHelper10.dll=K2KHelper10.dll
msvcrt.dll=msvcrt.dll
COMCTL32.OCX=COMCTL32.OCX
K2KFileLoaderCtl10.ocx=K2KFileLoaderCtl10.ocx
msvbvm60.dll=msvbvm60.dll
OLEAUT32.DLL=OLEAUT32.DLL
OLEPRO32.DLL=OLEPRO32.DLL
ASYCFILT.DLL=ASYCFILT.DLL
STDOLE2.TLB=STDOLE2.TLB
COMCAT.DLL=COMCAT.DLL

[install.files]
K2KInstaller.ocx=K2KInstaller.ocx
iobjsafe.tlb=iobjsafe.tlb
K2KHelper10.dll=K2KHelper10.dll
msvcrt.dll=msvcrt.dll
K2KFileLoaderCtl10.ocx=K2KFileLoaderCtl10.ocx

[SourceDisksFiles]
K2KInstaller.ocx=1
iobjsafe.tlb=1
K2KHelper10.dll=1
msvcrt.dll=1
K2KFileLoaderCtl10.ocx=1

[K2KInstaller.ocx]
file-win32-x86=thiscab
RegisterServer=yes
clsid={8293D586-B0E2-494E-89DC-ADDCDA153B3E}
DestDir=
FileVersion=1,3,0,164

[iobjsafe.tlb]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
FileVersion=0,0,0,0

[K2KHelper10.dll]
file-win32-x86=thiscab
RegisterServer=yes
clsid={06CE1E8C-5A5E-405D-9CD1-4204B4DCB2AC}
DestDir=
FileVersion=1,3,0,164

[msvcrt.dll]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
FileVersion=6,1,8924,0

[COMCTL32.OCX]
hook=COMCTL32.cab_Installer
clsid={9ED94440-E5E8-101B-B9B5-444553540000}
FileVersion=6,0,81,5

[COMCTL32.cab_Installer]
file-win32-x86=InfFile=ComCtl32.inf

[K2KFileLoaderCtl10.ocx]
file-win32-x86=thiscab
RegisterServer=yes
clsid={2BF2F727-8C18-402D-AF21-A67F8B928404}
DestDir=11
FileVersion=1,3,0,164

[msvbvm60.dll]
hook=msvbvm60.cab_Installer
FileVersion=6,0,89,64

[msvbvm60.cab_Installer]
file-win32-x86=run=%EXTRACT_DIR%\VBRun60.exe

[OLEAUT32.DLL]
hook=OLEAUT32.cab_Installer
FileVersion=2,40,4275,1

[OLEAUT32.cab_Installer]
file-win32-x86=run=%EXTRACT_DIR%\VBRun60.exe

[OLEPRO32.DLL]
hook=OLEPRO32.cab_Installer
FileVersion=5,0,4275,1

[OLEPRO32.cab_Installer]
file-win32-x86=run=%EXTRACT_DIR%\VBRun60.exe

[ASYCFILT.DLL]
hook=ASYCFILT.cab_Installer
FileVersion=2,40,4275,1

[ASYCFILT.cab_Installer]
file-win32-x86=run=%EXTRACT_DIR%\VBRun60.exe

[STDOLE2.TLB]
hook=STDOLE2.cab_Installer
FileVersion=2,40,4275,1

[STDOLE2.cab_Installer]
file-win32-x86=run=%EXTRACT_DIR%\VBRun60.exe

[COMCAT.DLL]
hook=COMCAT.cab_Installer
FileVersion=4,71,1460,1

[COMCAT.cab_Installer]
file-win32-x86=run=%EXTRACT_DIR%\VBRun60.exe

[Setup Hooks]
AddToRegHook=AddToRegHook

[AddToRegHook]
InfSection=DefaultInstall2

[DefaultInstall2]
AddReg=AddToRegistry

[AddToRegistry]
HKLM,&quot;SOFTWARE\Classes\CLSID\{8293D586-B0E2-494E-89DC-ADDCDA153B3E}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}&quot;
HKLM,&quot;SOFTWARE\Classes\CLSID\{8293D586-B0E2-494E-89DC-ADDCDA153B3E}\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}&quot;
HKCR,&quot;Licenses&quot;,,,&quot;Licensing: Copying the keys may be a violation of established copyrights.&quot;

[RegisterFiles]
%11%\K2KFileLoaderCtl10.ocx
%11%\K2KHelper10.dll
%11%\K2KInstaller.ocx
 
The problem is definitly due to user permissions on the client PC. Mostly to do with Registry settings and such like. A simple solution if for users to be W2K powerusers rather than standard users. These are demi-admins with enough rights to allow ActiveX downloads. Another more complicated solution is to publish the ActiveX control on Active Directory, which apparently allows downloads and installs to be performed under the permissions of the person who published it: see
hope this helps some
 
hello,
we also have this problem with treeview control.
we already successfully installed the control using
regsvr32. still it's not working. we even tried making
a vb application using treeview control and have an
installer for that to be used in our test pc.
the application was successfully installed and did
work. but when we tried accessing our asp file wherein
treeview control was used - it did not work. is there
some dependecies that we overlooked? or it's about
activex control licensing issue?
 
Yep, most likely you need an LPK file. Search MSDN for details. LPKTool.exe comes w/VB.
 
we've done that already - still it was not a success.
we also used codebase, wherein the object was properly installed since we checked it on the internet settings
view objects option - still unsuccessful. there is one observation though, after viewing objects we tried to click
the &quot;delete files&quot; option. right after that, without refreshing the asp sample page wherein the treeview control was instantiated - it worked. but if you will refresh the page, the problem still persists.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top