473,322 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

VB .NET COM Reference error

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.


Nov 20 '05 #1
4 2625
* "Jorge Luzarraga C" <jl********@fidens.cl> scripsit:
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?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
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 Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 20 '05 #3
Yes.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> escribió en el mensaje
news:e%****************@TK2MSFTNGP10.phx.gbl...
* "Jorge Luzarraga C" <jl********@fidens.cl> scripsit:
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?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #4
Mattias, I dont quite understand what you mean...so what should I do to
invoke this COM component from VB .NET?
"Mattias Sjögren" <ma********************@mvps.org> escribió en el mensaje
news:O9*************@TK2MSFTNGP11.phx.gbl...
Jorge,
A reference to "COMService" could not be added. Converting the type libraryto .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 Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pkpatel | last post by:
Hi, I keep getting this error every time I try to load crystalreportviewer on a webform with a dataset. Here is the error: -------------------------------------------------------- Server...
4
by: Todd | last post by:
Is it possible to pass an argument by reference through an event in C++ managed code? For example, can I do the following? public __gc class MyClass : public Control { public: __event...
110
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object...
6
by: trexim | last post by:
Hi, I am trying to create a Web Reference for CSTA using the URL http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl Visual .Net complains that: "...
2
by: Zippy | last post by:
Some months ago, we requested help from this newsgroup on how to replace the library reference of a database with another library reference, prior to creating an MDE. I got the following answer...
2
by: Steve Jorgensen | last post by:
When writing VB or VBA code that works with databases or other external libraries that cannot be trusted to automatically do the right thing when references to their objects are arbitrarily...
4
by: dhnriverside | last post by:
HI guys I've just written my first independent namespace for my library (yay me!). However, on trying to add it to my website project, it causes an error when I look at the website. It compiles...
2
by: msnews.microsoft.com | last post by:
I am currently trying to follow the Que Publishing exam guide to the Microsoft Exam 70-320. I followed the guide to a tee, but when I try to add a web reference to my server side soap extension it...
51
by: Kuku | last post by:
What is the difference between a reference and a pointer?
3
by: prakash.mirji | last post by:
Hello, I am getting below mention linker error when I tried to link my class test.C I use below command to compile test.C /usr/bin/g++ -g -fpic -fvisibility=default -D_POSIX_SOURCE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.