If you get a
An unhandled exception has occurred while executing the request.
System.BadImageFormatException: Index not found. (Exception from HRESULT: 0x80131124)
error when publishing your website through Visual Studio, a couple of things to check are: