AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
The view 'Error' or its master was not found
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
I'm getting these errors on a 9.0.4 site. Any idea what they are? I can browse to the page OK An error has occured at https://www.orcabook.com...uages/Simplified-Chinese View less Exception: The view 'Error' or its master was not found or no view engine supports the searched locations. The following locations were searched: ~/Themes/Orca/Views/Category/Error.cshtml ~/Themes/Orca/Views/Category/Error.vbhtml ~/Themes/Orca/Views/Shared/Error.cshtml ~/Themes/Orca/Views/Shared/Error.vbhtml ~/Views/Category/Error.cshtml ~/Views/Category/Error.vbhtml ~/Views/Shared/Error.cshtml ~/Views/Shared/Error.vbhtml Stack Trace: at System.Web.Mvc.ViewResult.FindView(ControllerContext context) at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) at System.Web.Mvc.Controller.ExecuteCore() at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) at System.Web.Mvc.Async.AsyncResultWrapper.<.cctor>b__0(IAsyncResult asyncResult, Action action) at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System Joined: 10/11/2018(UTC) Posts: 110
Thanks: 19 times Was thanked: 18 time(s) in 18 post(s)
|
Hi Judy, I think you are using Elmah for custom error logging and since the customerrors enabled, Asp.net is trying to find ‘Error’ view which doesn’t exists. You might need to double check your Elmah configurations. Here is stackoverflow link https://stackoverflow.co...its-master-was-not-found that might give you some insight on the issue. Thanks!
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System Joined: 10/11/2018(UTC) Posts: 110
Thanks: 19 times Was thanked: 18 time(s) in 18 post(s)
|
Another thing to check is that it isn’t using Response.Redirect instead of JavaScriptRedirect where the exception is originated.
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
Thanks, this is really weird. I had seen the error on a site where we were using Elmah.IO, but this site isn't using it. The dll is not in the bin folder, there are no entries in the web.config, CustomErrors is ON and debug is false. Up until a few days ago, we were getting the normal AC/MVC kind of undecipherable errors. Then I turned customerrors off and debug to true for a day to try to get errors from a web service. All weekend, the settings have been On and true and we're getting these Elmah related errors. I'll do more digging.
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
I'm still not able to figure out what the issue is with this. Is it possible that it is caused by redirects from links on the old Gold sites?
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System Joined: 10/11/2018(UTC) Posts: 110
Thanks: 19 times Was thanked: 18 time(s) in 18 post(s)
|
From the exception, it seems that the code is trying to locate the Error view inside theme's overridden Category folder, that is, ~/Themes/Orca/Views/Category/Error.cshtml. I am wondering if you have any customization inside the Category views folder which is used inside your Orca theme. The error view is actually under the following path /Website/Views/Errors/Error.cshtml.
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
Nadeem, Thanks for answering. There is no views folder under the theme folder. The only things there are the standard AC folders.
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
I finally figured out what the issue was. Another developer had added a line of code to register a web.api, but had also added the following line. It was causing the site to look for error handling pages that didn't exist, probably since there were none defined there. FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters)
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System Joined: 10/11/2018(UTC) Posts: 110
Thanks: 19 times Was thanked: 18 time(s) in 18 post(s)
|
Great, glad you have figured it out! Thanks for the update!!
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
The view 'Error' or its master was not found
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close