Windows Azure WebSites Error:Could not load file or assembly 'DotNetOpenAuth.Core

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

When trying to deploy Windows Azure Web Site you might get following error:

Server Error in '/' Application.

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)

However, when you start the application locally all will work fine. You will probably freak out, when you notice that you cannot find anything in your application what relates to missing assembly.

Solution
The reason for this error is trash in the bin folder of your web sites. This error will happen if you have deployed previously one MVC application  and then replaced it with the new one, which is not an MVC application.
To fix the problem you need to delete previously installed files. The picture below shoes how to do that:

image


Posted Sep 26 2013, 12:40 AM by Damir Dobric
developers.de is a .Net Community Blog powered by daenet GmbH.