VS2019: Why do I get range error when I try to create a new Web API 2 Controller - Empty?
Emily Wong
I wanted to create a new Web API Controller by adding a new scaffolded item. As I try to name my new controller, I get the following error:
There was an error running the selected code generator: 'The value -1 is outside the acceptable range of [0,2147483647]. Parameter name: value'
This error seems to occur with any name, e.g. "DefaultController"
Is anyone familiar with this error?
A clipart of the error window in case it is of any help:
11 Answer
This issue has been resolved in Visual Studio 2019 version 16.2.4. The release notes are available here: