[英]Error while generating view in Visual Studio 2019
While I am creating an ASP.NET MVC view in Visual Studio 2019, I am getting this error: 当我在Visual Studio 2019中创建ASP.NET MVC视图时,出现此错误:
There was an error running the selected code generator: 'the value -1 is outside the acceptable range 0,2147483647
运行所选代码生成器时发生错误:'值-1超出可接受范围0,2147483647
How can I solve it? 我该如何解决?
We have to open vs-2019 and select tool -> Options-> General -> ignore GPU memory access exception if the data written didn't change. 如果写入的数据未更改,我们必须打开vs-2019并选择工具->选项->常规->忽略GPU内存访问异常。 Mark it as checked then error will be disappear.
将其标记为选中,错误将消失。
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. 希望这可以帮助。
You might want to check out my answer to this in: 您可能想在以下位置查看我对此的答案:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.