0

My local website works fine.

I have uploaded the website to the server. All of the DLLs are in the bin directory, but I still get the missing reference error as you can see in the following image:

Error

The 'missing' reference is not directly used by the website, but rather is required by a library that the website uses.

My configurations are:

Server:

  • Windows Server 2008 R2 x64
  • IIS 8
  • .NET 4.5

Local:

  • Windows 8.1 Pro x64
  • Visual Studio 2013 Pro
  • IIS Express
rhughes
  • 9,257
  • 11
  • 59
  • 87
  • The "incorrect format" error usually means you're trying to load an x64 library in a x86 application or vice versa. Please use the search. – CodeCaster Nov 21 '13 at 13:14

1 Answers1

1

CodeCaster gave the hint above. The website was set to run as x64, but was trying to load a x86 binary.

To fix this, I:

  • Highlighted the website's application pool
  • Clicked 'Advanced Settings'
  • Set 'Enable 32-bit Applications' to true

enter image description here

rhughes
  • 9,257
  • 11
  • 59
  • 87