Last post Jul 26, 2017 02:22 AM by Deepak Panchal
Jul 21, 2017 02:28 PM|gib9898_00|LINK
Once in a while, in Visual Studio 2015, I get the following exception on the following line:
This has to do with running two projects at once. The two projects I'm running are an MVC web application and a web API application. I used to get this error all the time when I would run the MVC web application (it would be set as the startup project) and
then right-clicking on the web API project, going to Debug, and saying "Start new instance".
Recently, I discovered that you can set the solution to automatically start both projects at once by right-clicking on the solution, going to "Set Startup Projects", and selecting the projects you want to start.
But I still get this exception once in a while. Once it happens, I have to reboot my computer in order to get it to go away.
What causes it? How can I stop it from happening without rebooting my computer? I'm pretty sure I have to kill a process in the task manager (most likely the web API application) but I don't know how to recognize it.
Jul 26, 2017 02:22 AM|Deepak Panchal|LINK
this error means you are trying to use the another assembly then the assembly you are using in your project.
this can be cause by an update of nugget package.
you can try to manage the nugget packages and try to remove them after that you can try to download the latest one can solve your issue.
you can try to go to Web.Config and add bindingRedirect tag which describe the new version and old version may solve your issue.
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="188.8.131.52-184.108.40.206" newVersion="220.127.116.11"/>
you need to modify code and update the values in that.