After finishing the web application and publishing it online no matter I try I keep getting the following error, keep in mind that it runs locally as it should...
If your application works in your local but fails when deployed to the server, then this issue is most likely related to your IIS settings.
To resolve this, Make sure the “Enable 32-Bit application” property of the target Application pool in IIS is set to “TRUE”. It WORKS!