Error like:The view 'Error' or its master was not found or no view engine supports the searched locations. The following locations were searched:
*
~/Views/Home/Error.aspx
~/Views/Home/Error.ascx
~/Views/Shared/Error.aspx
~/Views/Shared/Error.ascx
~/Views/Home/Value cannot be null.
Parameter name: source.master
~/Views/Shared/Value cannot be null.
Parameter name: source.master
~/Views/Home/Value cannot be null.
Parameter name: source.cshtml
~/Views/Home/Value cannot be null.
Parameter name: source.vbhtml
~/Views/Shared/Value cannot be null.
Parameter name: source.cshtml
~/Views/Shared/Value cannot be null.
Parameter name: source.vbhtml
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The view 'Error' or its master was not found *or no view engine supports the searched locations. The following locations were searched:
*~/Views/Home/Error.aspx
~/Views/Home/Error.ascx
~/Views/Shared/Error.aspx
~/Views/Shared/Error.ascx
~/Views/Home/Value cannot be null.**
I have tried deploying this to CI/CD pipelines so getting error. Already confirmed that build action is set to Content
My Views heirarchy is:
Views
Home
ClaimsDetails.cs
Shared
_Layout.cshtml
Error.cshtml