Hi,
I am using the object tag with codebase pointing to an appropriate cab file in an ASP page. However on running the ASP page on another machine, the control does not load.
Any help would be appreciated.
Thanks.
Printable View
Hi,
I am using the object tag with codebase pointing to an appropriate cab file in an ASP page. However on running the ASP page on another machine, the control does not load.
Any help would be appreciated.
Thanks.
lets see the ASP page, if you can attach it.
Here is the ASP page.
Thanks
This temp Server, does it point to a valid location where the file acctually exist?
Well, I don't see whats wrong with the page. If we could see the cab file...
I have a query. First u package the control and then u deploy it.
Either way a cab file is created. Which cab file should I point to in the codebase attribute?
I am unable to upload the cab file. Do u want the inf?
Thanks a lot.
Hi,
I have been able to successfully download the cab file in a client's machine and work with the application. However if I try the same using an ASP page (object tag with codebase pointing to the same url as above) and change the security settings of I.E. to low, I get the prompt for unsafe ActiveX control. Nothing happens after that, i.e the comtrol is not downloaded. I have checked the DownloadedProgramFiles folder in WINNT.
Any help would be greatly appreciated.
Thanks,
SZ.
Hi,
You may have a problem with the .inf file.
If you're getting the dialog prompting you to download the control, but nothing is happening after that, then check that you have a line in your inf file like this: registerserver=true.
This forces windows to register the control when it downloads, and you shouldn't get prompted to download it again.
Here's a little list of tips I've made to troubleshoot while working with OCX's...
Downloading ActiveX controls from a server to a client browser:
1. Make the Cab file and put it in a web folder on server
(Use Cabarc.exe to do this).
An .inf file should be included in the cab, with the line 'registerserver=true'. This forces the client machine to register the ocx after it's downloaded.
2. Make the html page with an object tag that references the ocx control...
<object CLASSID="clsid:B6721979-C1A9-11D1-8127-00A0C98D5C7C"
CODEBASE="http://devtest01/Intradoc-cgi/IntraClient.cab"
ALIGN="CENTER" WIDTH="1" HEIGHT="1" ID="IntraClient"
</object>
Notes:
The classid of the ocx can be found by searching in the registry
The codebase is the URL to the cab file
The ID can be anything you want (it's the 'instance' name used for calling it's methods/properties)
3. Make sure the web folder on the server is marked 'read and write'
This is very important, the cab won't download without it.
Thanks for the info. However I have checked the inf file and found the line registerserver=yes.
I havent been able to figure out the problem so far. Right now I am managing with the ocx, but I need to get the cab running before my code moves into production.
Any help would be greatly appreciated.