Click to See Complete Forum and Search --> : Com object


Cristiane
July 28th, 2003, 11:01 AM
Hi...
I'd like to ask your help for the following problem...
In my asp-C#.net project I need to use an COM object. I added its reference in my project and I can use the code:
objCOM myObj = objCOM();
(objCom is the name of the reference)
I don't have any compilation error but when I execute the project, I have the following error in this line of the code:
"COM object with CLSID {XXXXXXXXXXXXX} is either not valid or not recognized.
I used this component with asp-vb.net project with "CreateObject" but in C# I don't get it... :-(
Someone could help me?
Really thanks any help.
Cristiane

coolbiz
July 28th, 2003, 11:41 PM
Shouldn't it be "objCOM myObj = New objCOM();" instead? I think so anyway :)

-Cool Bizs

Cristiane
July 29th, 2003, 08:52 AM
Hi cool Biz

Thanks your replay but I wrote wrong in my post...
The code I have is with "new"
objCOM myobjCOM = new objCOM();

I don't know if give some new information but in "details" I added a *.tlb file as reference of my project... then, I have a tree objects with 4 classes wich I could instance...
When I instance an object from one of this classes, that's OK.. Works perfectaly... but, from any other classes.. :-( I have this "CLSID error" ....
Could you help me?
Really thanks
Cristiane

coolbiz
July 29th, 2003, 09:28 AM
I don't think I can help with this remotely. If it is possible, you can zip up the whole project including the COM object (the DLL and TLB files) for me to test here on my PC.

-Cool Bizs

Cristiane
July 31st, 2003, 08:11 AM
Hi Cool Biz

The *.tlb is part of an program wich I have to install...
I can send you the project but, only the tlb could work?
Really Thanks
Cristiane

coolbiz
August 1st, 2003, 09:21 AM
Yea .. just zip them up and send to me, at least I can check out the code and try to find the problem from there.

-Cool Bizs