The other option to review when you receive this error is to view your Application_Pools
setting for the app_pool
you are using for your application.
Check the "Enable 32-Bit Applications". If this is "False
", change it to "True
". This may resolve your issue.