Unable to run Asp.NET MVC on localhost

I’m working on Visual Studio 2019 MVC module. And I’m not able to run MVC on localhost. Kindly help with the solution of server error/ resource not found error.
(I’ve followed exactly same steps instructed in asp.net tutorial by Mosh. But, still I’m not getting the Output)
Thanks in advance for the help.

Solved. I was changing name of the controller method from index to some other name and it was creating a conflict.