PC Review


Reply
Thread Tools Rate Thread

Assembly manifest mismtach & File or Assembly name not found

 
 
guxu@hotmail.com
Guest
Posts: n/a
 
      12th Jan 2006
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.

 
Reply With Quote
 
 
 
 
Phil Wilson
Guest
Posts: n/a
 
      13th Jan 2006
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]
----
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly manifest mismtach - Visual Basic & C# DLL guxu@hotmail.com Microsoft Dot NET 0 25th Jul 2006 11:01 PM
The located assembly's manifest definition with name 'xxxxxx' does not match the assembly reference??? Bob Rock Microsoft Dot NET 0 22nd Apr 2004 04:09 PM
The located assembly's manifest definition with name 'xxxxxx' does not match the assembly reference??? Bob Rock Microsoft Dot NET Framework 0 22nd Apr 2004 04:09 PM
The located assembly's manifest definition with name 'xxxxxx' does not match the assembly reference??? Bob Rock Microsoft Dot NET 0 22nd Apr 2004 04:06 PM
manifest for non-assembly file in a Multi-file Assembly scenario... Dan Microsoft Dot NET Framework 4 7th Jan 2004 10:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 PM.