asp.net MVC 4 deploy on azure Could not load file or assembly 'DotNetOpenAuth.Core'

2

Hello I am trying to deploy asp.net MVC 4 project on azure but I get this problem. I searched a lot about the solution but it looks like none suit my case, this is the Error message I get :

Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Before the dotnetopenAuth have no reference in my project I downloaded but still get the same error .

Anyone have an idea?

deployment
azure
asp.net-mvc-4
dotnetopenauth
asked on Stack Overflow Feb 11, 2013 by user2060371 • edited Feb 11, 2013 by ssilas777

4 Answers

3

I know this is old, but I came across a similar problem and this question popped up as the closest case. This was my issue:

http://developers.de/blogs/damir_dobric/archive/2013/09/26/windows-azure-websites-error-could-not-load-file-or-assembly-dotnetopenauth-core.aspx

Being, a previous MVC project had been deployed, which contained these references. I deleted them by downloading the publish profile, and, with the "Remove additional files at destination" option checked, I published to Azure.

answered on Stack Overflow Oct 10, 2013 by nullable
1

While publishing, you can select "Remove additional files at destination" and then publish again.

answered on Stack Overflow Dec 4, 2014 by Sumit Jolly • edited Oct 10, 2018 by Pang
0

I ran into this issue with continuous deploy between visual studio online and azure.

I modified my build file and changed the "Do Not Delete" setting under "Deployment" in the "Process" Tab to False.

Good to go.

answered on Stack Overflow Mar 2, 2015 by EthR
-1

This is a case of version mismatch. The error itself says that manifest definition does not match.

Look carefully at the version of the referenced assembly and the version shown in error message.

In case you are not using openauth you can remove it's reference all together.

answered on Stack Overflow Feb 11, 2013 by Chandermani

User contributions licensed under CC BY-SA 3.0