I deployed the Nuget source code to my company\'s web server, but when navigate to the URL, I get the following error (pulled from Event Viewer on the server):
I had this exact error - the only solution that worked was setting the app pool's Enable 32-bit Applications advanced setting to True.
Update: As I continue to have issues with a particular solution, I've found that clearing the C:\WINDOWS\Microsoft.NET\Framework\v4.xxx.xx\Temporary ASP.NET Files\
resolves the issue in most cases.