Newtonsoft.Json Issue Huh?
I received an email via Google's Webmaster tool's notification system. Apparently my site could not be reached. If you do not use Google's Webmaster tools, they are a great thing to have. You can sign up at: https://www.google.com/webmasters/tools
The email I received looked like this:
I thought maybe the server just so happened to be down at the time for maintenance when it tried reaching my site, but this was not the case. When navigating to my site, this is what I found:
Yuck! So the first thing that came to mind is that I need to update to the newer version of Newtonsoft.Json. Not quite that easy. I needed to do the following:
- Update the package using Update-Package Newtonsoft.Json
- This didn't quite work, so I removed the item from the Packages.config file and then re-added it.
- Still wasn't quite working, so I needed to go into the web.config file and add the following as a dependentAssembly reference for Newtonsoft.Json:
bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="6.0.0.0"
I then did a Web Deploy to my website and it was back up and running!