I'm having an issue with VS and can't seem to shake the problem. All my other teammates don't have the issue and no one can seem to find the reason why mine is being caused. When I run a build I get this error:
System.IO.FileLoadException: 'Could not load file or assembly 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'
After searching google it seems the problem is somehow Microsoft.Owin version is wrong comparatively to my .csproj file and packages.config file. When I reinstalled this package and double checked that all versions were correct (.csproj, packages.config, web.config), I built the project and this page launched.
As you can see the page above doesn't really have a whole lot of information so I really have no clue what to do next. I've recloned my repo like 10 times in various locations and with different names. I've completely uninstalled VS and reinstalled twice without any avail. I'm a frontend developer and this is my first project in ASP.net so I really don't know where to begin on this and my backend developer teammates seem equally perplexed. Has anyone had a similar issue, any ideas how to fix, or where I can get more information on what is going wrong.
Thanks in advance for your advice.
In your web.config try adding:
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0"/>
</dependentAssembly>
This falls under the configuration > runtime > assemblyBinding section
User contributions licensed under CC BY-SA 3.0