0

In a legacy ASP.NET 3.5 WebForms application I added a Microsoft.SharePoint.Client dll for 2010 Sharepoint.

After removing it I can successfully build the project, but when accessing the page I get a System.BadImageFormatException.

I have removed all dependencies from the project(project files, config files etc.). Framework is the same it compiles against as before, and platform also. Any idea?

oldsport
  • 993
  • 2
  • 14
  • 37

1 Answers1

0

BadImageFormatException usually indicates an attempt to load a 64-bit assembly into a 32-bit environment, or vice versa. See this:

Troubleshooting BadImageFormatException

Community
  • 1
  • 1
M.J.
  • 51
  • 3