Object doesn't support this property or method

Discussion in 'ASP General' started by fniles, Mar 15, 2006.

  1. fniles

    fniles Guest

    I created a CAB file for a 3rd party control (StockChartX) it using
    CABARC.exe that comes from Microsoft SDK.
    In the CAB file I included the StockChartX.ocx and StockChartX.INF.
    Then, I signed the CAB file using Verisign. I also created the LPK file for
    it (using LKPTool.exe).
    On my web page, I include the CAB file, and when I bring up that web page,
    it asks to download it, and I download it.
    After the control is downloaded, I got an error "Object doesn't support this
    property or method : StockChartX1.ChartBackColor".
    I have a VB application that also uses the control, and after I download the
    StockChartX control from the web page, I can use that control on my VB
    application, just not on the web page.
    When I install the ACtiveX control from the 3rd party CD and use it on my
    website, instead of using the downloaded .OCX file, besides getting the
    mesage "an ActiveX control on this page might be unsafe to interact with
    other parts of the page, I do not get the error "Object doesn't support this
    property or method".
    Do you have any suggestion why the control does not work on the website ?

    Here is my ASP page:

    <OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
    id="Microsoft_Licensed_Class_Manager_1_0"1 VIEWASTEXT><PARAM
    NAME="LPKPath" VALUE="StockChartx.lpk"></OBJECT>

    <OBJECT id="stockchartx1"
    classid="clsid:89D9AAAF-DC4F-4F72-ACF3-D2EDB8644A44" width = 1000 height =
    500
    codeBase="stockchartx.cab#version=5,5,5,1"
    VIEWASTEXT>
    </OBJECT>
    </P>
    <script language="vbscript">
    StockChartX1.ChartBackColor = 0 'RGB(0, 0, 0) --> error here
    :
    </script>

    This is the StockChartX.INF file:
    ;INF file for StockChartX.ocx
    ;DestDir can be 10 for Windows directory, 11 for Windows\System(32)
    directory, or left blank for the Occache directory.

    [version]
    signature="$CHICAGO$"
    AdvancedINF=2.0

    [DefaultInstall]
    CopyFiles=install.files
    RegisterOCXs=RegisterFiles
    AddReg=AddToRegistry

    [RInstallApplicationFiles]
    CopyFiles=install.files
    RegisterOCXs=RegisterFiles
    AddReg=AddToRegistry
    [DestinationDirs]
    install.files=11

    [SourceDisksNames]
    1=%DiskName%,StockChartX.CAB,1

    [Add.Code]
    StockChartX.ocx=StockChartX.ocx
    objsafe.tlb=objsafe.tlb
    msvbvm60.dll=msvbvm60.dll
    OLEAUT32.DLL=OLEAUT32.DLL
    OLEPRO32.DLL=OLEPRO32.DLL
    ASYCFILT.DLL=ASYCFILT.DLL
    STDOLE2.TLB=STDOLE2.TLB
    COMCAT.DLL=COMCAT.DLL

    [install.files]
    StockChartX.ocx=StockChartX.ocx
    objsafe.tlb=objsafe.tlb

    [SourceDisksFiles]
    StockChartX.ocx=1
    objsafe.tlb=1

    [StockChartX.ocx]
    file-win32-x86=thiscab
    RegisterServer=yes
    clsid={89D9AAAF-DC4F-4F72-ACF3-D2EDB8644A44}
    DestDir=11
    FileVersion=5,5,5,1

    [objsafe.tlb]
    file-win32-x86=thiscab
    RegisterServer=no
    DestDir=11
    FileVersion=0,0,0,0

    [msvbvm60.dll]
    hook=msvbvm60.cab_Installer
    FileVersion=6,0,96,90

    [msvbvm60.cab_Installer]
    file-win32-x86=vbrun60.cab
    run=%EXTRACT_DIR%\VBRun60.exe

    [OLEAUT32.DLL]
    hook=OLEAUT32.cab_Installer
    FileVersion=2,40,4275,1

    [OLEAUT32.cab_Installer]
    file-win32-x86=vbrun60.cab
    run=%EXTRACT_DIR%\VBRun60.exe

    [OLEPRO32.DLL]
    hook=OLEPRO32.cab_Installer
    FileVersion=5,0,4275,1

    [OLEPRO32.cab_Installer]
    file-win32-x86=vbrun60.cab
    run=%EXTRACT_DIR%\VBRun60.exe

    [ASYCFILT.DLL]
    hook=ASYCFILT.cab_Installer
    FileVersion=2,40,4275,1

    [ASYCFILT.cab_Installer]
    file-win32-x86=vbrun60.cab
    run=%EXTRACT_DIR%\VBRun60.exe

    [STDOLE2.TLB]
    hook=STDOLE2.cab_Installer
    FileVersion=2,40,4275,1

    [STDOLE2.cab_Installer]
    file-win32-x86=vbrun60.cab
    run=%EXTRACT_DIR%\VBRun60.exe

    [COMCAT.DLL]
    hook=COMCAT.cab_Installer
    FileVersion=4,71,1460,1

    [COMCAT.cab_Installer]
    file-win32-x86=vbrun60.cab
    run=%EXTRACT_DIR%\VBRun60.exe

    [Setup Hooks]
    AddToRegHook=AddToRegHook

    [AddToRegHook]
    InfSection=DefaultInstall2

    [DefaultInstall2]
    AddReg=AddToRegistry

    [AddToRegistry]
    HKLM,"SOFTWARE\Classes\CLSID\{89D9AAAF-DC4F-4F72-ACF3-D2EDB8644A44}\Implemented
    Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}"
    HKLM,"SOFTWARE\Classes\CLSID\{89D9AAAF-DC4F-4F72-ACF3-D2EDB8644A44}\Implemented
    Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}"
    HKCR,"Licenses",,,"Licensing: Copying the keys may be a violation of
    established copyrights."

    [RegisterFiles]
    %11%\StockChartX.ocx


    Thank you.
     
    fniles, Mar 15, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. todd
    Replies:
    3
    Views:
    5,869
  2. Roman
    Replies:
    0
    Views:
    4,063
    Roman
    Jan 4, 2004
  3. zdrakec
    Replies:
    0
    Views:
    608
    zdrakec
    Sep 26, 2007
  4. Joe
    Replies:
    3
    Views:
    567
  5. JohnE
    Replies:
    1
    Views:
    1,079
    JohnE
    Mar 9, 2010
Loading...

Share This Page