Hello, I have an ASP.Net web app. I use there self written library that references Microsoft.Dynamics.BusinessConnectorNet.dll version x64. When I try to start my app I always get this error page with an exception:
Server Error in '/' Application.
Не удалось загрузить файл или сборку "Microsoft.Dynamics.BusinessConnectorNet" либо одну из их зависимостей. Была сделана попытка загрузить программу, имеющую неверный формат.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Не удалось загрузить файл или сборку "Microsoft.Dynamics.BusinessConnectorNet" либо одну из их зависимостей. Была сделана попытка загрузить программу, имеющую неверный формат.
It's mostly in russian, but basically it says that file or assemly can't be loaded and there was attempt to load program of wrong format.
It happens only in web app, in console app, for example, BC works just fine.
I've tried switching references differently, I created new project for that, but it's always the same...
How can I fix this? I can show you config files and cone if needed.