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

后端 未结 17 2227
逝去的感伤
逝去的感伤 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:36

    This error can also surface if your MSI installer failed to actually deploy the file.

    In my case this happened because I converted the .aspx files to .cshtml files and visual studio thought these were brand new files and set the build action to none instead of content.

提交回复
热议问题