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:


Line 97:                     {
Line 98:                         var _contentService = ApplicationContext.Current.Services.ContentService;
Line 99:                         IContent node = _contentService.CreateContent(productResponse.Product.Name, siteConfig.BigCommerce.productFolderId, "bcProduct");
Line 100:
Line 101:                        node.SetValue("bcId", productResponse.Product.Id);

Source File: d:\HostingSpaces\MyFlylight\staging.myflylight.com\wwwroot\App_Code\BigCommerce\Routing\ProductLiveVirtualNodeRouteHandler.cs    Line: 99

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   FLM.App_Code.Routing.ProductLiveVirtualNodeRouteHandler.FindContent(RequestContext requestContext, UmbracoContext umbracoContext) in d:\HostingSpaces\MyFlylight\staging.myflylight.com\wwwroot\App_Code\BigCommerce\Routing\ProductLiveVirtualNodeRouteHandler.cs:99
   Umbraco.Web.Mvc.UmbracoVirtualNodeRouteHandler.GetHttpHandler(RequestContext requestContext) +59
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +11833497
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +74
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92


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