473,804 Members | 4,128 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Registering for COM Interop

PGP
I have an assembly i need to register for COM interop. This assembly has
other assembly dependencies that need not be visible to COM. Although, when
i turn on "Register for COM Interop" in the project setting for the target
assembly and compile, it gives me an error "COM Interop registration failed.
Could not find a type library for assembly <dependent assembly>"

Is there a way to not have the dependent assembly registered for COM
interop?

TIA
Priyesh
Jan 18 '08 #1
2 1633
Are you using any Types from the dependent registry in the public
interface of the assembly you want to register? Try marking those
members (or whole classes) with [ComVisibile(fal se)]

Marc
Jan 18 '08 #2
PGP

"Marc Gravell" <ma**********@g mail.comwrote in message
news:e6******** *************** ***********@z17 g2000hsg.google groups.com...
Are you using any Types from the dependent registry in the public
interface of the assembly you want to register? Try marking those
members (or whole classes) with [ComVisibile(fal se)]

Marc
Marc,

I tested your suggestion with one of the dependencies and it works
correctly. Thanks for the information.

Regards
Priyesh
Jan 18 '08 #3

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

Similar topics

0
968
by: Roy | last post by:
Hi all, I have the following issue: I have a .net assembly that I need registered in the GAC as well as registered for COM interop (using gacutil). When I deploy it to clients I register it with regasm. However when updating this component I cannot seem to unregister the old one (regasm /unregister). No errors, but it does not unregister the app. I end up having to hunt down the reg entries and blow them away. So my question is.... 1. ...
1
2268
by: wesley | last post by:
Hello, I have managed dll which I want to register as LocalServer, I am under the impression that using regasm is registering the COM component in InProc. Is there a way to register the COM components as LocalServer instead of InProc? Thanks,
0
980
by: Lars von Wedel | last post by:
Hello, I am developing a module using C# which serves as a plugin with a COM interface for a couple of weeks now. Everything works fine until this morning: without knowing what I changed (except some source codes about the user interface), the compiler now complains that it cannot register the interop assembly because it was generated from a type library. It refers to a strange file name which looks like a randomly generated one.
6
1996
by: Daniel Bass | last post by:
The scenario: ------------- I've created a simple COM object according to a tutorial I found: http://www.csharphelp.com/archives/archive281.html It automatically creates a Type Library (TLB) so that I can hook into the object using the virtual table provided in the tlb file.
6
4139
by: ian | last post by:
Hi All I have a DLL (nahd.dll) that has been supplied to me will a PBX phone system. According to the documentation it is to allow developers to write there own applications to monitor the system. Now when I try to register this DLL I get an error. “DLL RegisterServer entry point not found” According to Microsoft this means it is not a DLL. I can view it using Dependency Walker and it has all the events mentioned in the...
0
1160
by: Dan Bass | last post by:
One day, out of the blue, anything COM interop related stopped building. When building any project (VB / C#) that has a COM interop interface (my own home grown projects, or a Visual Studio .Net Add-in), I get the following error: Build complete -- 0 errors, 0 warnings Building satellite assemblies... Registering project output for COM Interop... COM Interop registration failed. Type library exporter can not load required library...
3
2482
by: InteropNut | last post by:
Hi, My ASP.NET application uses the MSOWCF.dll COM component (ms office functions) and it works fine on my computer with MS Office installed. But I am trying to upload the application to my web server which does not have MS office installed. When I execute the application on the server I get an error message that says that the classid of the MSOWCF.dll is either invalid or not registered. How do I go about registering this COM? I've...
2
3754
by: Todd | last post by:
Hi Guys, Ive hit a problem that I just can't find a solution to... Ive created an application that downloads images from a digital camera. The application is written in C# and uses the WIA library to handle the image transfer. Im creating an MSI file using visual studio and including the wiaaut.dll and interop.WIA.dll files in the install package. Ive marked both to be registered in their properties (as csdrfCOM and vsdraCOM).
12
1714
by: cfps.Christian | last post by:
I've got a nice little deadline here and have to deal with the dumbest things possible to get it done. I had to create an application that is spliced into another application via an event handler class. When the original program sees the event handler is uses the handler's code to execute my code (I code the handler as well). Anyway I've coded all this and of course it works locally but I don't need it to work locally I need it to work...
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10577
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9150
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.