Close

Object reference not set to an instance of an object.

vedran
11 years ago
#1174 Quote
Avatar
  • 45
After transger development version in work version on server I have error.
____________________________________________________________________
Log level:   Error
The log entry message.Short message:   Object reference not set to an instance of an object.
The details for the log entry.Full message:   System.NullReferenceException: Object reference not set to an instance of an object. at SevenSpikes.Nop.Plugins.SmartSEO.ActionFilters.CategoryActionFilterAttribute.OnActionExecuted(ActionExecutedContext filterContext) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) 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.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d() at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
____________________________________________________________________________________
And
Log level:   Error
The log entry message.Short message:   Object reference not set to an instance of an object.
The details for the log entry.Full message:   System.NullReferenceException: Object reference not set to an instance of an object. at SevenSpikes.Nop.AjaxFilters.ActionFilters.CategoryActionFilterAttribute.OnActionExecuted(ActionExecutedContext filterContext)
_______________________________________________________________________________
Version 2.65
Web site work normally, but log reports errors for ajax filter and SEO.
In the development version does not report anything.
I tried reinstall, but no change.
Core is ver 2.65
Support
11 years ago
#1175 Quote
Avatar
  • Moderator
  • 1044
Hi,

Although the error is thrown by the Smart SEO plugin the actual error is not there. Please uninstall the smart SEO plugin and this way the real error will be shown. The Smart SEO uses action filters that expect a View result to be returned by the action but when there is an error on the category page then a redirect to the error page result is returned and this causes a null reference exception. Please uninstall the plugin and check again your log. When you resolve your problem you can install the Smart SEO again or alternately simply disable the smart seo.

Best Regards,
Nop-Templates Support Team
vedran
11 years ago
#1180 Quote
Avatar
  • 45
Without SEO (seo disable) I have this error

Log level:   Error
The log entry message.Short message:   Object reference not set to an instance of an object.
The details for the log entry.Full message:   System.NullReferenceException: Object reference not set to an instance of an object. at SevenSpikes.Nop.AjaxFilters.ActionFilters.CategoryActionFilterAttribute.OnActionExecuted(ActionExecutedContext filterContext) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) 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.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d() at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Support
11 years ago
#1188 Quote
Avatar
  • Moderator
  • 1044
vedran wrote:
Without SEO (seo disable) I have this error

Log level:   Error
The log entry message.Short message:   Object reference not set to an instance of an object.
The details for the log entry.Full message:   System.NullReferenceException: Object reference not set to an instance of an object. at SevenSpikes.Nop.AjaxFilters.ActionFilters.CategoryActionFilterAttribute.OnActionExecuted(ActionExecutedContext filterContext)


Hi Vedren,

So the same happens with the Ajax Filters as they also use Action Filters.
Please uninstall the Filters and check again.

Please let us know how it goes!

Best Regards,
Nop-Templates Support Team
vedran
11 years ago
#1197 Quote
Avatar
  • 45
It seems that Google searches nonexistent pages (old web site).
Strangely, indexing is refreshed.Sitemap SEO is correct.
We must investigate. Thanks guys!
bradnywells
7 years ago
#12649 Quote
Avatar
  • 1
Search Results
Object reference not set to an instance of an object. exactly what it says, you are trying to use a null object as if it was a properly referenced object. Most of the time, when you try to assing value into object, and if the value is null, then this kind of exception occur. NullReferenceException indicates that you are trying to access member fields, or function types, on an object reference that points to null. That means the reference to an Object which is not initialized.