[RESOLVED] ActiveX Publshing issues on the Web
Hai friends,
I have never used an activeX controll on the web.
Yesterday i created an activeX contol. Then i used the P&D wizard to package it for the web. after packaging i ended up with 3 files on in a folder called 'Package' . 1. ocxname.htm 2.ocxname.cab 3.a folder call support which consist of all the vbruntime files,an inf and an additional ocx for inet. looking like a copies of files which are inside the cab file.
i just copied the htm file and the cab file to the root of my website.
i accessed the htm page using http://www.mysite.com/myocx.htm
the page displayes, but insted of my activex control, i can only see a small Box with a dot in the middle indicating somthing is missing.
Please Help. Agent matter.
Re: ActiveX Publshing issues on the Web
Are you certain it is registered on the web server?
Re: ActiveX Publshing issues on the Web
Hack,
first, it does not appear in the page.
second, how do i register it ?
3rd, what i have distributed is correct ?
Re: ActiveX Publshing issues on the Web
Quote:
Originally Posted by Fazi
second, how do i register it ?
If your installer didn't register it, then I would try regsvr32
Quote:
Originally Posted by Fazi
3rd, what i have distributed is correct ?
If this is the only problem you are having, then it sounds like you got everything. Especially, if manually registering the control works.
Re: ActiveX Publshing issues on the Web
Well, since it's something to run in the browser, it doesn't need to be registered with the server.....
How did you link to the object in your HTML? That's going to be the key. There's a couple attributes that are involved - 1) to indicate the object to use and 2) if it's not available, a link to the CAB file where it can be installed from.
-tg
Re: ActiveX Publshing issues on the Web
Thanks for your replies.
This is the code P&D has put inside html file
Code:
<OBJECT ID="UserControl1"
CLASSID="CLSID:B8BE9C8E-2C73-4316-980C-86387DE20F86"
CODEBASE="NetCheck.CAB#version=1,0,0,0">
</OBJECT>
NetCheck is the ocx name
I am still confused with what to upload on to the server :rolleyes:
Re: ActiveX Publshing issues on the Web
Quote:
Originally Posted by Hack
If your installer didn't register it, then I would try regsvr32If this is the only problem you are having, then it sounds like you got everything. Especially, if manually registering the control works.
Hack, as tg sad, i need to put this activex in a webpage :)
for the initial testing, i decided to the use the page p&D generated. that has the cod i posted in previous post.
Re: ActiveX Publshing issues on the Web
For uploading, the CAB file. But even still... the tag....oop.... never mind, I see it... it's pointing to the cab... the CAB file needs to go into the same dir as the web page that is displaying it. IF you want the CAB in another folder, then modify the CODEBASE parameter of the tag to point to the CAB file RELATIVE to the web page displaying it.
-tg
Re: ActiveX Publshing issues on the Web
amaizing, still the control does not apeear on the page. browser displays the waring. if allowed, the control not shown :(
1 Attachment(s)
Re: ActiveX Publshing issues on the Web
GotIt, As TG specified, i just distributed the cab file and the htm file generated by the P&D an uploaded to the root. Now the problem is,
ie7 seems maintaining a strong security policy on its own activeX technology. The activeX is not loaded even if i allow the security warning by ie7. i found the reson. coz my activex is not signed. Now the next challange is to get A digital signature which i have no idea on where to obtain :(
Appriciate if you can help me to get a digital signature for Free :D
Re: ActiveX Publshing issues on the Web
That's the wordst part..... the digital signature.... VeriSign is probably the widely known & used company... but it's not cheap... most Digi Sigs aren't....
-tg
Re: ActiveX Publshing issues on the Web
Yes tg, i have come to the worst part :D
Now i am not in a position to spend 299 usd for 'Code Signing Certificate' for this activeX control.
But, I am happy that, today i practically felt the importance of Certificates on the web.
Actually activeX controls seems not humans friends. they look at thease Controls as evil on the web :D
So, i just found an Ajax method to exchange data between two websites in the following link : http://www.simple-talk.com/dotnet/as...vices-in-ajax/
Thank You all for the support.
OK, I decided to gofor a