Asked by:
Can not add New Controller in asp.net core Application

Question
-
User1839056048 posted
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
Saturday, June 27, 2020 1:31 PM
All replies
-
User1120430333 posted
I would say close the project and shutdown Visual Stuido and restart it and try it again.
Saturday, June 27, 2020 4:40 PM -
User1839056048 posted
Already tried several timesSunday, June 28, 2020 4:15 AM -
User-2054057000 posted
First clean the solution then rebuild it and fix any errors you get. Then you add a controller. It should work.
Sunday, June 28, 2020 4:42 AM -
User1839056048 posted
What are the steps for cleaning the application.
It is also.net core 2.1Sunday, June 28, 2020 5:21 AM -
User1120430333 posted
What are the steps for cleaning the application.
It is also.net core 2.1
There is Clean option off the Build menu option in Visual Stuido.
Sunday, June 28, 2020 5:50 AM