The view 'Index' or its master was not found.

后端 未结 17 2209
逝去的感伤
逝去的感伤 2020-12-15 14:42
The view \'Index\' or its master was not found. The following locations were searched:
~/Views/ControllerName/Index.aspx
~/Views/ControllerName/Index.ascx
~/Views/Sh         


        
17条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 15:46

    1. right click in index() method from your controller
    2. then click on goto view

    if this action open index.cshtml?

    Your problem is the IIS pool is not have permission to access the physical path of the view.

    you can test it by giving permission. for example :- go to c:\inetpub\wwwroot\yourweb then right click on yourweb folder -> property ->security and add group name everyone and allow full control to your site . hope this fix your problem.

提交回复
热议问题