Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I try to add controller and a new scaffolded item but I have got the following error: There was an error running the selected code generator:
'Package restore failed. Rolling back package changes for 'MvcMovie'.'

How can I solve the problem?

BR
Merh

What I have tried:

I don't know how to solve.
I have googled for information but without results.
Posted
Updated 26-Aug-19 1:03am
Comments
[no name] 8-May-19 4:35am    
Is it a "Nuget" package? If so, check their status.
ZurdoDev 8-May-19 10:52am    
If you just changed your model, make sure to do a build first.

Delete ".vs" folder from your solution directory. After reopening solution, execute a "Clean Soluiton" - that worked for me in VS2019, MVC .NET 4.7.2.

See also: c# - "There was an error running the selected code generator: 'The value -1 outside the acceptable range of [0,2147483647]. Parameter name :value''" - Stack Overflow[^]
 
Share this answer
 
Delete ".vs" folder from your solution directory. After reopening solution, execute a "Clean Soluiton" - that worked for me in VS2019, MVC .NET 4.7.2.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900