An error was reported when the project was published to the server: the view "Index" or its master view was not found, or there was no location where the view engine supported search. Searched the following locations

{"type": 3, "errorcode": 0, "message": "View Index" or its master view not found, or there is no location where the view engine supports search. Search the following locations:
rn~/Areas/SystemManage/Views/SystemHome/Index.aspx
rn~/Areas/SystemManage/Views/SystemHome/Index.ascx
rn~/Areas/SystemManage/Views/Shared/Index.aspx
rn~/Areas/SystemManage/Views/Shared/Index.ascx
rn~/Views/SystemHome/Index.aspx
rn~/Views/SystemHome/Index.ascx
rn~/Views/Shared/Index.aspx
rn~/Views/Shared/Index.ascx
rn~/Areas/SystemManage/Views/SystemHome/Index.cshtml
rn~/Areas/SystemManage/Views/SystemHome/Index.vbhtml
rn~/Areas/SystemManage/Views/ Shared/Index.cshtml
rn~/Areas/SystemManage/Views/Shared/Index.vbhtml
rn~/Views/SystemHome/Index.cshtml
rn~/Views/SystemHome/Index.vbhtml
rn~/Views/Shared/Index.cshtml
rn~/Views/Shared/Index.vbhtml ", "resultdata": null}

This problem occurs when the

code is generated in vs and deployed to the server, and this folder is not found from the location of the prompt. How to solve this problem?

Mar.21,2021

finally copies the missing files in the project to the server, but why do you lose the files during the packaging process?


before generating through vs, select files that were not previously included, right-click above, select to include in the project and then regenerate so that it should be OK

Menu