Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

VS2019: Why do I get range error when I try to create a new Web API 2 Controller - Empty?

Writer 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:

error window

1

1 Answer

This issue has been resolved in Visual Studio 2019 version 16.2.4. The release notes are available here:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy