I've been having an issue with Microsoft Visual Studio 2017 (we are using asp.net framework) that none of my team seems to get. It happens randomly and the only solution I've found in the past was to reformat my hard drive. Basically, the project starts to just give me 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)'
I don't really have a rhyme or reason why it is caused and none of the backend developers at my work understand why it is happening. I know it pertains to IIS and suspect it is an issue with my locally cached files since no one else in the project is getting the issue.
I've read through a lot of search results on google, most solutions are 5 or 6 years old and don't seem to be what I need. If anyone has any advice or can help me further debug this issue I'd greatly appreciate it. I really don't feel like reformating my hard drive everytime this issue pops up :'(
Thanks
User contributions licensed under CC BY-SA 3.0