I have created MFC Activex Control using VS 2005.And I have created .cab file(cabinet file )including .inf file into it using cabarc.exe.
And now I want to run it and register it through IE,so I created on .html page including code as below...
<OBJECT ID="activex" CLASSID="CLSID:4D607033-7231-4691-9A1D-F59153330B72"
CODEBASE="C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\Bin\Temp_Activex.cab"
here CASSID is the CLSID of my Activex Conrol and CODEBASE is the path of the .cab file.
And this page runs very successfully on my local PC and my Activex also runs in the Web Page.
But my problem is when I want to access this page from My Server. I Put Both .cab file and .html file on to the server and then I run this .html file then it shows Security Message of restricting the webpage from running Activex Control(top on the page).When I click on that Strip Message and Select option of Run Activex Control then one Messagebox comes with the details..Code BlockDo you want to run this Activex Control?
Name:name of My Activex
Publisher : My Publisher Name (Unverified Publisher)
When I click run then nothing happens ,My Activex Control does not run or register.
I have also tried this .cab file by signing with digital signature(using signtool.exe) , But the same problem comes.
So the Moral of the story is that this error of Unverified Publisher.
So Do you have Any Idea or Suggetion?
your Answer Will be Appreciated.
Thanks in Advance.
Hi Ashish Bhatt,
you need to do the signing for your .cab file. this can be done using signtool or with some other tool provided by windows.
go through this link : http://msdn2.microsoft.com/en-us/library/ms974305.aspx
i hope this one will defnetly help you.
Wait a second...
http://msdn2.microsoft.com/en-us/library/ms533576.aspx says that "The URL of the component cannot be a local path."! Is that information false?