Located assembly's manifest def does not match the assembly reference...

  • Thread starter Richard Lewis Haggard
  • Start date
R

Richard Lewis Haggard

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.
There's a single test exe and a number of of# library classes. I needed to
move two of the projects down one directory from their original position and
did so my making the appropriate directory, copying the source to that
directory, deleting the original from the solution, adding the moved copy to
the solution and then modified the various project properties so that the
post copy command put the assemblies in the proper place, the relative path
to the key files was adjusted and the project references were changed to use
the new projects instead of the old one. The project build successfully.
However, when the test app runs and tries to create an Account class, an
exception is thrown because "The located assembly's manifest definition with
name 'BCGI.Business.Security.Common' does not match the assembly reference.'

The test code calls into a function that resides in Account, one of the
projects that was moved, and Account references the
BCGI.Business.Security.Common assembly. I've gone through the various
projects, deleted and then re-added the references but the problem doesn't
go away.

1) How do I fix the problem?
2) What does moving two projects have to do with changing the requested
version numbers?
3) How does the system know what version numbers it is looking for?
 
F

Frans Bouma [C# MVP]

Richard said:
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. There's a single test exe and a number of of# library
classes. I needed to move two of the projects down one directory from
their original position and did so my making the appropriate
directory, copying the source to that directory, deleting the
original from the solution, adding the moved copy to the solution and
then modified the various project properties so that the post copy
command put the assemblies in the proper place, the relative path to
the key files was adjusted and the project references were changed to
use the new projects instead of the old one. The project build
successfully. However, when the test app runs and tries to create an
Account class, an exception is thrown because "The located assembly's
manifest definition with name 'BCGI.Business.Security.Common' does
not match the assembly reference.'

The test code calls into a function that resides in Account, one of
the projects that was moved, and Account references the
BCGI.Business.Security.Common assembly. I've gone through the various
projects, deleted and then re-added the references but the problem
doesn't go away.

1) How do I fix the problem?
2) What does moving two projects have to do with changing the
requested version numbers?
3) How does the system know what version numbers it is looking for?

is BCGI.Business.Security.Common a signed assembly? If so, please
check the version number by right-clicking the dll, -> properties ->
version tab and compare that with the version number shown in the
references in the project in vs.net.

FB

--
 
R

Richard Lewis Haggard

Yes, it is a signed assembly. The versions are the same. The version number
from the DLL's properties is the same as the version that is displayed in
the reference section of the failing assembly.
 
R

Richard Lewis Haggard

I finally just blew everything thing away and manually rebuilt the entire
solution from ground zero. That works. Thanks for the help anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top