When publishing an ASP.NET MVC 5 application writes Could not load file or assembly 'Microsoft.ApplicationInsights

The located assembly's manifest definition does not match the assembly reference.

More information about the error, you can look at the currently not working site https://livingearth.space/

Tried to rebuild the project, delete links and re-install, delete and update via nuget Microsoft. ApplicationInsights does not help. I’m already leaving Sum, I’m working on my computer, I don’t publish to a host.

    1 answer 1

    The solution turned out to be simple, I published via FTP, and I didn’t put a tick in VS "delete everything before publication". In general, I put it, it all worked. And so for those who have such a problem and do not publish via FTP, then you just need to manually delete everything that relates to your site from the host and upload everything to a new one.