1

I have this error when trying to add a new controller to my MVC app:

Visual Studio 2019 4.7.2 .NET Framework

Error:

There was an error running the selected code generator: 'The value -1 is outside the acceptable range of [0,2147483647]. Parameter name: value'

I tried to restart Visual Studio but it didn't work. Any help would be very much appreciated.

ssilas777
  • 9,672
  • 4
  • 45
  • 68
  • Add the exact versions of the .NET Framework and VS at the very least. Reproduce with a new, minimal MVC app. – H H Sep 03 '19 at 12:45
  • Tried shutting down all running copies of Visual Studio and **deleting all temporary files from your project/solution folders**, before restarting Visual Studio and trying again? – Matthew Watson Sep 03 '19 at 12:45
  • Seems like the same issue as this: https://stackoverflow.com/questions/39127199/there-was-an-error-running-the-selected-code-generator-object-reference-not-se – Willy David Jr Sep 03 '19 at 12:51
  • Visual Studio 2019 4.7.2 .NET Framework – António MFA Sep 03 '19 at 12:57

0 Answers0