First clean the solution then rebuild it and fix any errors you get. Then you add a controller. It should work.
Helping you always. Don't forget to click "Mark as Answer" on the post that helped you.
♠ ASP.NET Core Tutorials → Start from the Beginning and become an Expert in 30 days time ♠
Member
54 Points
519 Posts
Can not add New Controller in asp.net core Application
Jun 27, 2020 01:31 PM|klbaiju|LINK
Hi,
I have an asp.net core web application and it was working fine.
suddenly it is not working fine.
if I try to add a controller there is an error
there was an error running the selected code generator
Scaffold failed
A connection attempt failed because the connected property did not properly
respond after a period of time or established connection failed because
connected host has failed to respond to 127.0.0.1:4113
how to solve this regards
Baiju
Contributor
4963 Points
4218 Posts
Re: Can not add New Controller in asp.net core Application
Jun 27, 2020 04:40 PM|DA924|LINK
I would say close the project and shutdown Visual Stuido and restart it and try it again.
Member
54 Points
519 Posts
Re: Can not add New Controller in asp.net core Application
Jun 28, 2020 04:15 AM|klbaiju|LINK
Participant
1253 Points
936 Posts
Re: Can not add New Controller in asp.net core Application
Jun 28, 2020 04:42 AM|yogyogi|LINK
First clean the solution then rebuild it and fix any errors you get. Then you add a controller. It should work.
♠ ASP.NET Core Tutorials → Start from the Beginning and become an Expert in 30 days time ♠
Member
54 Points
519 Posts
Re: Can not add New Controller in asp.net core Application
Jun 28, 2020 05:21 AM|klbaiju|LINK
It is also.net core 2.1
Contributor
4963 Points
4218 Posts
Re: Can not add New Controller in asp.net core Application
Jun 28, 2020 05:50 AM|DA924|LINK
There is Clean option off the Build menu option in Visual Stuido.
https://docs.microsoft.com/en-us/visualstudio/ide/building-and-cleaning-projects-and-solutions-in-visual-studio?view=vs-2019