VB .NET COM Reference error

  • Thread starter Thread starter Jorge Luzarraga C
  • Start date Start date
J

Jorge Luzarraga C

Hello,

can anybody please help me with this? I´m trying to add a reference to a VB
..NET Windows Project but I get the error shown int the attached picture.
ooops ..the newsgroup didnt accept my picture so the error is :


A reference to "COMService" could not be added. Converting the type library
to .NET assembly failed. Common Language Runtime Internal Internal Error:
0x801311a5

What am I doing wrong?

TIA


Jorge.
 
* "Jorge Luzarraga C said:
can anybody please help me with this? I´m trying to add a reference to a VB
.NET Windows Project but I get the error shown int the attached picture.
ooops ..the newsgroup didnt accept my picture so the error is :

A reference to "COMService" could not be added. Converting the type library
to .NET assembly failed. Common Language Runtime Internal Internal Error:
0x801311a5

Is "COMService" the component you are trying to reference?
 
Jorge,
A reference to "COMService" could not be added. Converting the type library
to .NET assembly failed. Common Language Runtime Internal Internal Error:
0x801311a5

What am I doing wrong?

According to CorError.h that means

TLBX_E_CIRCULAR_IMPORT
"TypeLib import: attempt to import a TLB exported from a CLB."

You can't import a typelib that was originally exported from an
assembly. Managed-to-managed references shouldn't go via COM.



Mattias
 
Mattias, I dont quite understand what you mean...so what should I do to
invoke this COM component from VB .NET?
 
Back
Top