简体   繁体   English

在Visual Studio 2019中生成视图时出错

[英]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.

相关问题 收集快照时出现 Visual Studio 2019 性能探查器错误 - Visual Studio 2019 performance profiler error while collecting snapshots 在Visual Studio 2015 Update 3中生成Windows 10构建时出错 - Error while Generating Windows 10 Build in Visual Studio 2015 Update 3 Visual Studio 2019 SSDT 项目 SQLCLR 签名未生成签名的 DLL - Visual Studio 2019 SSDT project SQLCLR signing not generating signed DLL XAML 设计器在 VIsual Studio 2019 中显示错误 - XAML Designer show error in VIsual Studio 2019 Visual Studio 2019 构建 IdentityServer4 中的错误 - Error In Visual Studio 2019 Building IdentityServer4 通过 Visual Studio 2019 从 TFS 克隆项目时出现致命错误 - Getting the Fatal Error while cloning the Project from the TFS through Visual Studio 2019 从 Visual Studio 2019 中的 Word 文件复制代码时 C# 出现意外字符错误 - Unexpected character error in C# while copy code from word file in visual studio 2019 为什么 Unity 在这里抛出错误 CS0136 而 Visual Studio 2019 没有? - Why does Unity throw error CS0136 here while Visual Studio 2019 doesn't? 在Visual Studio中创建SharePoint WebPart时出错-“生成项目时发生错误” - Error when creating SharePoint WebPart in Visual Studio - “An error occurred while generating the project” 无法在 Visual Studio 2019 中加载用户控件设计视图 - Cannot load user control design view in Visual Studio 2019
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM