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=22.214.171.124, 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
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.