Solved

ConfigManifestForm

Posted on 2013-01-11
4
238 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

15 Experts available now in Live!

Get 1:1 Help Now