|
-
Oct 18th, 2001, 09:06 AM
#1
ActiveX control does not load
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.
-
Oct 18th, 2001, 10:22 AM
#2
Hyperactive Member
lets see the ASP page, if you can attach it.
Abu Haider
____________________________
100% Data Validation for the MS DataGrid Control. Plus Support for Custom and Foreign Lists, DatePicker and much more...
The DataGridEnhancer
I often point to a place where the problem has been discussed, instead of giving you the code that solves it. This is for good, may be you will understand some day...
-
Oct 18th, 2001, 10:34 AM
#3
ActiveX control does not load
Here is the ASP page.
Thanks
-
Oct 18th, 2001, 10:49 AM
#4
Hyperactive Member
This temp Server, does it point to a valid location where the file acctually exist?
Abu Haider
____________________________
100% Data Validation for the MS DataGrid Control. Plus Support for Custom and Foreign Lists, DatePicker and much more...
The DataGridEnhancer
I often point to a place where the problem has been discussed, instead of giving you the code that solves it. This is for good, may be you will understand some day...
-
Oct 18th, 2001, 11:21 AM
#5
Hyperactive Member
Well, I don't see whats wrong with the page. If we could see the cab file...
Abu Haider
____________________________
100% Data Validation for the MS DataGrid Control. Plus Support for Custom and Foreign Lists, DatePicker and much more...
The DataGridEnhancer
I often point to a place where the problem has been discussed, instead of giving you the code that solves it. This is for good, may be you will understand some day...
-
Oct 18th, 2001, 11:34 AM
#6
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.
-
Oct 18th, 2001, 02:53 PM
#7
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.
-
Nov 5th, 2001, 11:19 AM
#8
New Member
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.
-
Nov 5th, 2001, 03:10 PM
#9
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|