Results 1 to 9 of 9

Thread: ActiveX control does not load

  1. #1
    SunnyZ
    Guest

    Exclamation 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.

  2. #2
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Orlando
    Posts
    392
    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...

  3. #3
    SunnyZ
    Guest

    ActiveX control does not load

    Here is the ASP page.
    Thanks

  4. #4
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Orlando
    Posts
    392
    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...

  5. #5
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Orlando
    Posts
    392
    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...

  6. #6
    SunnyZ
    Guest
    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.

  7. #7
    SunnyZ
    Guest
    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.

  8. #8
    New Member
    Join Date
    Nov 2001
    Location
    Dublin, Ireland
    Posts
    1
    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.

  9. #9
    SunnyZ
    Guest
    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
  •  



Click Here to Expand Forum to Full Width