My contemplations and diurnal novelties are publicized here


I tried to open an application of mine on 64bit OS having Window 7 and IIS 7.5 and I ran into this problem. This is due to following issue.

  • IIS running on a 64Bit Operating System
  • The Assembly DLL in question has been compiled for 32Bit – check the project properties under the build tab, if under platform target you have x86 then it is 32bit only.

The issue is that the 64Bit IIS machine is using an Application Pool that is not allowing a 32bit DLL to be processed.

  1. Just Check you project configuration


  1. Goto IIS Manager — > Application Pools — > Advance setting of the pool your application is using

Reference:- http://blog.crowe.co.nz/archive/2007/11/05/Could-not-load-file-or-assembly-name-or-one-of.aspx

Advertisements

Comments on: "Could not load file or assembly ‘mscorcfg’ or one of its dependencies. An attempt was made to load a program with an incorrect format" (1)

  1. Thanks a lot! It helped.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: