Visual Studio 2015 debugging issues

爷,独闯天下 提交于 2019-12-10 10:52:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!