0
Good morning colleagues, I am trying to generate a controller on MVC 5 with VS 2019 and am taking the following error message.
Someone could help me with this problem?
Error executing selected code generator: 'Value -1 is out of the acceptable range of [0.2147483647]. Parameter name: value'
Try placing with Layout checkbox unchecked.
– PauloHDSousa
Your project has some build error?
– George Wurthmann
George, there’s no mistake...
– Henrique Abreu
If you try to generate for other models of the right?
– George Wurthmann
Paulo, I cleared all checkboxes and still the problem continues.
– Henrique Abreu
George, it happens to all models..
– Henrique Abreu
The error you are experiencing has also been reported here: https://answall.com/questions/401867/erro-ao-gerar-controle-no-asp-net-mvc?noredirect=1#comment788631_401867 It seems to be a problem in version 16.2 of VS 2019: https://developercommunity.visualstudio.com/content/problem/626755/error-running-the-selected-code-generator-value-1.html But this seems to have been corrected in version 16.2.1: https://docs.microsoft.com/pt-br/visualstudio/releases/2019/release-#-visual-studio-notes2019-vers%C3%A3o-1621-visual-studio-2019-version-1621- The VS you are using is already in version 16.2.1?
– Raquel Pinheiro
my version is 16.2.0 I will try to update here...
– Henrique Abreu
Raquel, that’s right...
– Henrique Abreu