Could not load file or assembly ‘Owin

By | April 16, 2017

First day of trying the understand OWIN, I follow the steps from the microsoft site and are greeted by this error message.

Could not load file or assembly ‘Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

There are possible solutions here but none worked for me then I realized to my embarrassment the error was caused by me naming my sandbox project “Owin”.

  • Rename the project and assembly
  • Clean the solution
  • Rebuild

Upon further investigation, true as bob. There is a 3rd party assembly called Owin.dll located in the bin folder. This must be part of the nuget package installation.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *