Error while generating view in Visual Studio 2019

╄→尐↘猪︶ㄣ 提交于 2019-12-01 09:57:28

问题


While I am creating an ASP.NET MVC view in Visual Studio 2019, I am getting this error:

There was an error running the selected code generator: 'the value -1 is outside the acceptable range 0,2147483647

How can I solve it?


回答1:


We have to open vs-2019 and select tool -> Options-> General -> ignore GPU memory access exception if the data written didn't change. Mark it as checked then error will be disappear.




回答2:


I ran into the same problem tomorrow, tried many manipulations found on different subjects, including yours, nothing worked. Finally, someone gave me a "solution" that let me continue my project, hence I'm sharing it here in case yours doesn't fit someone's issue: simply copy/paste any view...!

Yeah, it doesn't make the resilient error go away, and you'll have to hand code each new view, but at least you'll be able to keep coding your project.

Hope this helps.




回答3:


You might want to check out my answer to this in:

  • the value -1 is outside the acceptable range of [0,2147483647]. Parameter name: value


来源:https://stackoverflow.com/questions/57269913/error-while-generating-view-in-visual-studio-2019

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