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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

!!!!!! URGENT Help!!!! activex loading errors on remote computer

Status
Not open for further replies.

BKURUVALLI

Programmer
Dec 26, 2003
7
US
HI,

I have created an ActiveX control using MFC in Visual Studio .NET. I have also created a cab file with the required dlls (mfc70.dll,msvcrt.dll and olepro32.dll) and the inf file. The contents of the inf file are below. I have placed the cab file on iplanet server on unix and amm trying to access the page. The page loads without any errors if I do it from the workstation I used to build this activex control. Butwhen I try to access the webpage from any of the other clients machines, I get an error "object doesn't support this property or method" . Am I missing something here. How do I register the activex on the client machine through the web page?

Thx,
Bharath.


; Sample INF file for activeXTest.ocx
[version]
; version signature (same for both NT and Win95) do not remove
signature="$CHICAGO$"
AdvancedINF=2.0

[Add.Code]
activeXTest.ocx=activeXTest.ocx
mfc42.dll=mfc42.dll
msvcrt.dll=msvcrt.dll
olepro32.dll=olepro32.dll

[activeXTest.ocx]
file-win32-x86=thiscab
clsid={3692F6FF-3E04-4B7C-9412-8382DFCAF0DC}
FileVersion=1,0,0,001
RegisterServer=yes

; needed DLL
[mfc42.dll]
file-win32-x86=thiscab
FileVersion=6,00,0,9586
DestDir=11
RegisterServer=yes

; needed DLL
[msvcrt.dll]
file-win32-x86=thiscab
FileVersion=6,01,0,9844
DestDir=11
RegisterServer=yes

; needed DLL
[olepro32.dll]
file-win32-x86=thiscab
FileVersion=5,00,0,4522
DestDir=11
RegisterServer=yes

; end of INF file
 
Who are the clients of your page ? I am one then:
0. The page have to check if I have this ActiveX on my machine
1. I have to TRUST you before allowing to install an ActiveX on my machine
2. If I accept then your page have to detect my operating system or the page have to ask me to select one
3. In the both cases you have to have the ActiveX for the selected system, then install it , register it and maybe restart automatically my system

-obislavu-
 
Thanks for the reply. I was able to get the activex control to download. It was a runtime license issue that I corrected.

The activex control is downloaded on to the client machine. I can see it in the "downloaded program files " in the internet options.

I have also signed the cab file with a test root certificate. and run the setreg command to trust the root test certificate. I get the certificate check window when I first get to the web page and I check the "always trust" option and accept it.

But I still get a popup when I go to the page with the activex control and it says "An Active control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction".

All I am doing is loading the activex object and calling a method of the object. The method opens notepad on the client box.

Why is this happening. Can I not call a method of the object.

Thx,
Bharath.

 
The issue has been resolved. I had to add code to mark the control safe for initialization and scripting.

Thanks for your help...
 
did you use the IObjectSafety Interface?

i'm having this problem now, and i cant resolve it.
thanks
jluxe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top