473,378 Members | 1,542 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,378 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 1153

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...
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.