Assembly Microsoft.Owin not found

1

In my project I am using the OWIN library for user authentication. I have already installed the package, but when I run the project, the error is returned:

  

Could not load file or assembly 'Microsoft.Owin, Version = 2.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' or one of its dependencies. The localized assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

If someone can help, I appreciate it.

    
asked by anonymous 10.08.2016 / 05:44

2 answers

1

Reinstall a newer version of Microsoft.Owin, this version is from and January 2014. Install version 3.0.1.

Update-Package Microsoft.Owin

Obs: Sometimes going in Import and Export Settings, and giving a Reset all settings solves the problem

    
23.05.2017 / 20:12
1

I had the same problem and the fix was:

Build -> Clean Solution, and Build -> Rebuild Solution

Before posting. I deleted all files and then

Build -> Publish

It worked for me (VS2017 / IIS 7)

    
12.04.2018 / 16:13