I was also getting this error. I went to the Event Viewer and it said there was an error in the binding redirects in the app.config. They were incorrectly nested and fixing that resolved the issue.