Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   MotoMundi.Web.Controllers.ProductController.CreateViewData(Product product, ProductSM prodSm, List`1 salesItems, List`1 videos) +4709
   MotoMundi.Web.Controllers.ProductController.View(Int32 productId, Int32 productItemId) +8334

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +128
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +142
   Castle.MonoRail.Framework.SmartDispatcherController.InvokeMethod(MethodInfo method, IRequest request, IDictionary`2 extraArgs) +92
   Castle.Proxies.Invocations.SmartDispatcherController_InvokeMethod_1.InvokeMethodOnTarget() +170
   MotoMundi.Common.Interceptors.LoggingIterceptor.Intercept(IInvocation invocation) +2045
   Castle.Proxies.ProductControllerProxy.InvokeMethod(MethodInfo method, IRequest request, IDictionary`2 extraArgs) +227
   Castle.MonoRail.Framework.Controller.RunActionAndRenderView() +1715
   MotoMundi.Common.Interceptors.LoggingIterceptor.Intercept(IInvocation invocation) +2045
   Castle.MonoRail.Framework.BaseHttpHandler.Process(HttpContext context) +141

[MonoRailException: Error processing MonoRail request. Action View on controller Product]
   Castle.MonoRail.Framework.BaseHttpHandler.Process(HttpContext context) +532
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3650.0