Understand, this is an old question, but you would like to share information that helped me solve the same error. I could not narrow down the problem to which the .dll was causing the problem, but everything was resolved after removing the nuget packages. Something was causing an error, so removing and re-adding packages did the trick. Spent countless hours on this error, so hope this helps someone else who runs through it.
source share