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

Solved: Manifest does not match assembly reference

Instead of posting a problem, I will post a solution to a
problem that I've seen posted many times. One which I
just hit and solved.

I've been using signed assemblies (have to... they are
called by Biztalk over a COM Interop layer). Along the
way, I changed one of the assemblies that my system
depends on, and started getting the following error:

General Information
*********************************************
Additional Info:
ExceptionManager.MachineName: FUDGEFACTOR
ExceptionManager.TimeStamp: 11/26/2003 12:09:42 PM
ExceptionManager.FullName:
Microsoft.ApplicationBlocks.ExceptionManagement,
Version=1.0.1406.18430, Culture=neutral,
PublicKeyToken=98f45edf554ca9ce
ExceptionManager.AppDomainName: DefaultDomain
ExceptionManager.ThreadIdentity:
ExceptionManager.WindowsIdentity: DEV\NICK

1) Exception Information
*********************************************
Exception Type: System.IO.FileLoadException
Message: The located assembly's manifest definition with
name 'MHD.LocalMachine' does not match the assembly
reference.
FileName: MHD.LocalMachine
FusionLog: === Pre-bind state information ===
LOG: DisplayName = MHD.LocalMachine,
Version=1.0.1419.25873, Culture=neutral,
PublicKeyToken=815d65a021f12c25
(Fully-specified)
LOG: Appbase = C:\Program Files\Microsoft BizTalk Server\
LOG: Initial PrivatePath = NULL
Calling assembly : MHD.CISCollector,
Version=1.0.1424.32062, Culture=neutral,
PublicKeyToken=815d65a021f12c25.
===

Using the ILDASM utility, inspecting the Manifest, I was
able to see that my calling assembly: MHD.CISCollector,
was, in fact, asking for an older version of the library
than existed on disk.

I tried dropping the references in Visual Studio and re-
adding them, and recompiling, to no avail.

Apparently, having any application open on the build
machine that USES the older assembly will cause the older
version to be referenced in the new compile. Since I had
NUNIT running, and it had loaded an older version of my
application, the old DLL was still loaded in memory. The
C# compiler picked up the version information from the DLL
in memory, rather than the one on disk, and placed it in
the manifest.

Needless to say, once deployed to another machine, it
failed miserably, since the older version is simply not
available on the test machine. (In fact, I had deleted
the file from my dev machine too, but that didn't take it
out of memory. I had to end the application to have that
effect).

So, for those of you with this problem, who find this
notice (now, or later on Google Groups), I hope this helps.

--- Nick Malik
ni*******@nospam.hotmail.com
Jul 21 '05 #1
0 6267

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

Similar topics

3
by: Gary McGill | last post by:
I have a C# solution with a dozen or so projects. There are references between the projects, and these were all added as "Project" references. Everything's been working fine for months, but...
4
by: Bob | last post by:
I want to use a 3rd party assembly that links to a "4th party assembly." My problem is that I use a newer version of that 4th party assembly. When I add the assemblies as references to my...
1
by: CA | last post by:
I am having a problem getting a pointer to an existing running Excel process on a client machine. Here are some details: 1) I have tested out the code on the development machine and it works...
0
by: Nick Malik | last post by:
Instead of posting a problem, I will post a solution to a problem that I've seen posted many times. One which I just hit and solved. I've been using signed assemblies (have to... they are...
3
by: Richard Lewis Haggard | last post by:
I'm getting an error that should be easy but I don't understand the info structure well enough to know what's going wrong. I've been slowly adding classes and projects to a solution for a while....
3
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
by: =?Utf-8?B?SmFtZXM=?= | last post by:
I'm stuck with the following error... Does anyone know how to correct the reference? I've not idea why it is referencing 'Copy of...' Server Error in '/Client1' Application....
0
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
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
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?

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.