Can you please check the location of
index.cshtml
file( or your view). it should be under the
views
folder in a sub-folder called
home
or in a sub-folder named with your controller name. If you place it on a different location the error can occur.
check this article[
^]
you can get a detailed tutorial in many websites. The below one is very useful
Click here for the tutorial link[
^]