473,385 Members | 1,863 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,385 software developers and data experts.

Using .NET-created components

Hi all,

Like many of my questions, I'm working through a book's examples. Topic at
hand is component services and I'm trying to use a component built earlier
in the chapter that was built and registered. When I attempt to add a
reference to it in another project, it shows up as a COM object, as I would
expect, but I receive the error message indicating:

"A reference to 'filename' could not be added. Converting the type library
to a .NET assembly failed. Type library filename was exported from a CLR
assembly and cn not be re-imported as a CLR assembly."

Which makes some sense to me. I suppose my question would be: Can you ever
add a COM reference to a wrappered .NET component? Could it pertain to
having since added the component to the GAC? The book MIGHT be written to
the 1.0 framework. Could this be something that changed with 1.1?

I've worked literally hundreds of examples by this author and he's seemed to
rarely if ever make this sort of mistake.

TIA,

John
Nov 22 '05 #1
2 1156

Hi all,
Anyone found answer for this problem. Please let me know as soon as possible.
I am facing the same problem.

Thanks & Regards
Kavita
Hi all,

Like many of my questions, I'm working through a book's examples. Topic at
hand is component services and I'm trying to use a component built earlier
in the chapter that was built and registered. When I attempt to add a
reference to it in another project, it shows up as a COM object, as I would
expect, but I receive the error message indicating:

"A reference to 'filename' could not be added. Converting the type library
to a .NET assembly failed. Type library filename was exported from a CLR
assembly and cn not be re-imported as a CLR assembly."

Which makes some sense to me. I suppose my question would be: Can you ever
add a COM reference to a wrappered .NET component? Could it pertain to
having since added the component to the GAC? The book MIGHT be written to
the 1.0 framework. Could this be something that changed with 1.1?

I've worked literally hundreds of examples by this author and he's seemed to
rarely if ever make this sort of mistake.

TIA,

John


User submitted from AEWNET (http://www.aewnet.com/)
Nov 22 '05 #2

Hi. Try to add reference to dll, not tlb in References (using Browse).

Regards, Vitaliy.

--
Ventilj
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message1161629.html

Jan 4 '06 #3

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

Similar topics

0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
43
by: nospam | last post by:
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
5
by: IkBenHet | last post by:
Hello, I use this script to upload image files to a folder on a IIS6 server: ******************* START UPLOAD.ASPX FILE ********************** <%@ Page Language="VB" Debug="true" %>
7
by: | last post by:
Hello, I would like to do the following from a asp.net button click: <form method="POST" action="https://www.1234.com/trans_center/gateway/direct.cgi"> <input type="hidden" name="Merchant"...
13
by: JIM.H. | last post by:
Hello, I have the following lines to read connection string from web.config; string cStr = ConfigurationSettings.AppSettings; SqlConnection sqlConn = new SqlConnection(cStr);...
1
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
9
by: Nathan Sokalski | last post by:
I am using ASP.NET 2.0's ImageMap Control to create 2 imagemaps, one directly below the other. When I do this a thin blank space appears between them. After several days of frustration I realized...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
7
by: Rob Dob | last post by:
The following code is giving me a timeout problem., no matter what I do I can't send a piece of mail using .net2.0 System.Net.Mail.SmtpClient via port 465 and using ssl, if however I try using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.