问题
Every time I try to debug anything in c# asp.net I get this error.
Error = Unable to evaluate the expression. Operation not supported. Unknown error: 0x80070057.
alongside something like this Local = Evaluation of method System.Data.Entity.DbSet`1[appname.DataLayer.Entities.GameResultEntity].get_Local() requires use of the static field System.Data.Entity.Infrastructure.DbContextInfo._currentInfo, which is not available in this context.
In this case, all I'm doing is adding something to the database (which works) but I get this error when I try to debug anything. I've restored all the nuget packages, re-installed entity framework, restored my code to a point where everything worked, cleared the cache (recommended in another post) but nothing seems to be working.
Has anybody else encountered this before?
Thanks in advance
来源:https://stackoverflow.com/questions/36455671/visual-studio-2015-debugging-issues