值-1超出[0,2147483647]的可接受范围.参数名称:值 [英] the value -1 is outside the acceptable range of [0,2147483647]. Parameter name: value

查看:113
本文介绍了值-1超出[0,2147483647]的可接受范围.参数名称:值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio 2019脚手架安装任何控制器的问题我收到错误消息:
运行所选代码生成器时出错:'值-1超出[0,2147483647]的可接受范围.参数名称:value'"

Problem with scaffolding any controller using visual studio 2019 i get the error :
"there was an error running the selected code generator: 'The value -1 is outside the acceptable range of [0,2147483647]. Parameter name :value'"

我已经尝试过的相关链接,但是这个问题仍然存在

Related links i have tried and still this issues persist

我尝试了以下方法:
1.(在Visual Studio 2019中生成视图时出错)
2.(无法在VS 2015中从Controller添加视图:运行所选代码生成器时出错" )

I tried the following :
1. (Error while generating view in Visual Studio 2019)
2. (Can't Add View from Controller in VS 2015 : "There was an error running the selected code generator")

推荐答案

最新版本的Visual Studio 2019现在已解决该问题:版本16.2.5: https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes# 16.2.5

The issue is now fixed with the latest release of Visual Studio 2019: version 16.2.5: https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.2.5

该问题仅在以下情况下发生:

The issue would only to happen when:

  • 您已经在Visual Studio中打开了项目的web.config文件.

因此,解决方法用于:

  • 如果出现错误,请确保关闭web.config文件,并且能够安装脚手架控制器.

这篇关于值-1超出[0,2147483647]的可接受范围.参数名称:值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆