Link to home
Start Free TrialLog in
Avatar of IT-CICA
IT-CICAFlag for Canada

asked on

ConfigManifestForm

Hi,

We are creatign a new test web site to upgrade and test some softwares of our existing live website. I copied the whole code from LIVE site, upgraded the .dlls and changed the connection string to our test db.

When I try to browse the web site from IIS on the test server, I get following error:

Exception type: ConfigurationErrorsException
    Exception message: Could not load file or assembly 'ConfigManifestForm' or one of its dependencies. An attempt was made to load a program with an incorrect format.
----------------------------------------------------------------------------------------------------------------------------------------------
I checked if the assembly exists in the bin folder of the website. It does.

Any idea why it could be happening?
ASKER CERTIFIED SOLUTION
Avatar of Roopesh Reddy
Roopesh Reddy
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Manoj Patil
1- check if you are referencing an assembly which in turn referencing an old version of unity. for example let's say you have an assembly called ServiceLocator.dll which needs an old version of Unity assembly, now when you reference the ServiceLocator you should provide it with the old version of Unity, and that makes the problem.

2- may be the output folder where all projects build their assemblies, has an old version of unity.

you can use FuseLogVw application to find out who is loading the old assemblies, just define a path for the log, and run your solution, then check (in FuseLogvw) the first line where the Unity assembly is loaded, double click it and see the calling assembly, and here you go.
Hi,

Is the issue solved?
Avatar of IT-CICA

ASKER

Thanks. This solution worked.