Solved

ConfigManifestForm

Posted on 2013-01-11
4
240 Views
Last Modified: 2013-01-21
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?
0
Comment
Question by:IT-CICA
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 500 total points
ID: 38769618
Hi,

I think it's 32-bit and 64-bit problem! May be you would have build in x86 and deployed in x64!

Try enabling  Run 32-bit apps in IIS Server -

http://stackoverflow.com/questions/2023766/an-attempt-was-made-to-load-a-program-with-an-incorrect-format-even-when-the-p

Hope it helps u...
0
 
LVL 19

Expert Comment

by:Manoj Patil
ID: 38792839
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.
0
 
LVL 23

Expert Comment

by:Roopesh Reddy
ID: 38793719
Hi,

Is the issue solved?
0
 

Author Closing Comment

by:IT-CICA
ID: 38801941
Thanks. This solution worked.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now