473,511 Members | 14,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Assembly manifest mismtach & File or Assembly name not found

I have a VB application referencing some C# dlls. Got new set of C#
dll assemblies, now kept getting errors when I run my VB application.
There were errors like assmbly reference mismatch. Also in debug mode,
it errored at New or CreateObject of the referenced COM object. I have
checked GAC and it looked good.

I guess what I am asking is what I need to do when I get a new build of
assemblies that my VB application is referencing to avoid those
mismtach or file not found errors.

Thanks.

Jan 12 '06 #1
1 1326
The new C# assemblies probably have different assembly versions or strong
names. If you just replaced the old ones in the GAC with the new ones
you'll fail in both of your scenarios:

1. Calling via COM fails because the registration for .NET COM Dlls includes
assembly version and strong name (in the CLSID node in the registry) and
they don't match what's in the GAC. Regasm the new assemblies should be the
solution.

2. If you compiled a VB.NET program with build-time references to the old
assemblies, your code is bound to assemblies with the old assembly version
and strong name, so you'd need to recompile your .NET program using
references to the new assemblies.
--
Phil Wilson [MVP Windows Installer]
----
<gu**@hotmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I have a VB application referencing some C# dlls. Got new set of C#
dll assemblies, now kept getting errors when I run my VB application.
There were errors like assmbly reference mismatch. Also in debug mode,
it errored at New or CreateObject of the referenced COM object. I have
checked GAC and it looked good.

I guess what I am asking is what I need to do when I get a new build of
assemblies that my VB application is referencing to avoid those
mismtach or file not found errors.

Thanks.

Jan 13 '06 #2

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

Similar topics

3
2544
by: Atul Godbole | last post by:
Suppose an assembly "Main" is using class "A" from another Assembly "Dep" as follows : A a = new A(); a.MethodOne(); At what time is the call to MethodOne linked to the actual MSIL (method...
0
5521
by: Namratha Shah \(Nasha\) | last post by:
Hi All, Assembly linker is a tool which is used to create an assembly by combining one or more .netmodules and resource files. In simple words an .netmodule is an IL file that does not have ...
6
44471
by: Steve | last post by:
I'm playing with late binding and trying a very simple test to load an assembly In my "Host" application I have this code: <code> string modulePath =...
3
4385
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
0
1230
by: guxu | last post by:
I have a visual basic 6.0 application that references a strong named C# DLLs. I have been getting the error "The located assembly's manifest definition with name <XXXdoes not match the assembly...
0
1902
by: =?Utf-8?B?Q29saXZpZXI=?= | last post by:
If anyone can help me with this I would really appreciate it: I have an assembly into which I have linked a manifest file as a Win32 resource. This is necessary since I want to use a class in this...
0
1367
by: JB | last post by:
I have an ASP project written years ago that I have recently started to try and update. It was written by someone who used to work here before me, and the source code I have is in a major mess. ...
2
5127
by: Febria | last post by:
Dear, all... I have some problem with my application. I used UltraWebGrid component in my web application. Unfortunately, when I tried to run the web, the error page displayed: The located...
0
7252
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,...
0
7153
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
7371
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
7432
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...
0
7517
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...
0
5676
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 project—planning, coding, testing,...
1
5077
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...
0
4743
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...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.