Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Object doesn't support this property or method

Reply
Thread Tools

Object doesn't support this property or method

 
 
fniles
Guest
Posts: n/a
 
      03-15-2006
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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object doesn't support this property or method JohnE ASP .Net 1 03-09-2010 06:18 AM
User control is GridView causing Object doesn't support this property or method exception Joe ASP .Net 3 12-10-2007 01:03 AM
JScript: object doesn't support this property or method zdrakec ASP .Net 0 09-26-2007 08:02 PM
Error: Object doesn't support this property or method Roman ASP .Net 0 01-04-2004 04:50 PM
Client Side, User Control "Object Doesn't support this property or method" todd ASP .Net 3 10-16-2003 06:53 PM



Advertisments