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

Resolving references used by a C# COM dll at runtime

I have a C# COM dll (using ComVisible, ClassInterface etc) and that dll has a
number of references (other custom dll's). For example MyComProj.dll,
MyComProjReference.dll which live in C:\MyAssemblies

I register the MyComProj.dll using regasm etc.

I can now instantiate the required COM object in this dll if I create a new
exe project that lives in the same folder that. However, I wish to use this
COM dll in a number of other programs, for example, Internet Explorer.

It appears that no matter what you do (gac, config files etc) the .NET
framework refuses to look ANYWHERE else apart from the application folder -
not even in the GAC!! Surely, I've missed something somewhere and support
for creating COM objects in C# is not this poor.

Below is the first error log (of a number of failures) from the Assembly
Binding log view:

*** Assembly Binder Log Entry (18/01/2008 @ 11:31:15) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msco rwks.dll
Running under executable C:\Program Files (x86)\Internet
Explorer\iexplore.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = MICL-NET\mnl
LOG: DisplayName = stdole, Version=7.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/Internet Explorer/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = iexplore.exe
Calling assembly : MyComProj, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=24cc1a8168bea492.
===
LOG: Start binding of native image stdole, Version=7.0.3300.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
WRN: No matching native image found.
Jan 18 '08 #1
0 1351

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

Similar topics

0
by: Olav | last post by:
Resolving character references with C++/Arabica I have an element that looks like this: <PhoneNumber>&lt;NUMBER&gt;</PhoneNumber> I would like to have the content returned as "<NUMBER>". Not...
4
by: JKop | last post by:
Take the following: int GiveMeInt(void) { return 734; } int main(void) {
0
by: cubes | last post by:
Hi, I have an Access 97 application with a reference to an mda library with a single module. I distribute these as a runtime application. Recently I have found that I get a references problem...
13
by: placid | last post by:
Hi all, I was just if anyone knows a way to resolve a list of integers say {1,2,3,4,5} into a range that is 1-5? #include <stdlib.h> #include <stdio.h> #include <ctype.h> int main(int...
3
by: Matt | last post by:
Hello, I work on many asp.net projects, so i made a general dll that is not strong named. To use this dll in a project, a simply copy the dll in the bin directory and references it using...
1
by: Steve W | last post by:
I hope this makes sense ! We have an VB ASP.NET Web Application. In the bin directory are all our compiled dlls. We have written some integration with a 3rd party, which some of our clients...
2
by: Demid | last post by:
Hi, all. I have recently written a small applpication that uses Microsoft CDO Library (cdo.dll) that is a set of COM-classes. I have added a reference to this library using standard "Add...
3
by: John Kotuby | last post by:
I have just upgraded to a new development machine that came with Vista ultimate. I am developing a website with VS2005 and VB. My image and css references in my source code are all relative. For...
0
by: =?Utf-8?B?TWlrZSBMYWZmZXJ0eQ==?= | last post by:
I have a C# COM dll (using ComVisible, ClassInterface etc) and that dll has a number of references (other custom dll's). For example MyComProj.dll, MyComProjReference.dll which live in...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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
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.