System.BadImageFormatException: Could not load file or assembly

When trying to run my MVC application targeting 64 bit environment, i got this error as usual tried a lot with configuration manager without any effect, finally a google search leads to this page
which has an absolute spot on answer (w.r.t my case) , make the iis express to run in 64 bit mode will remove this error,(Visual Studio – Tools – Options – Projects and Solutions – Web Projects), for regular deployment on iis change the enable 32 bit applications app_pool property to false will help to resolve this error. (from statckoverflow) . Learning never cease to exist.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.