NullReferenceException in Cassette.Views.Bundles.Reference

Follow

Description

On accessing or previewing an Active Commerce page, you see the following exception:

[NullReferenceException: Object reference not set to an instance of an object.]
Cassette.Views.Bundles.Reference(String assetPathOrBundlePathOrUrl, String pageLocation) +15
ActiveCommerce.Skinning.AddReferences.ProcessReferences(IList`1 items) +167
ActiveCommerce.Skinning.AddReferences.Process(RenderLayoutArgs args) +428
(Object , Object[] ) +82
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +364
Sitecore.Layouts.PageContext.BuildControlTree(Object sender, EventArgs e) +210
System.Web.UI.Page.PerformPreInit() +48
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1843

Cause

This error indicates that you have not correctly configured the Cassette module, which Active Commerce utilizes for CSS and JS asset management.

Solution

If you are setting up a Sherpa demo environment for demos or training, ensure you have installed Sherpa and that you did not overwrite the Web.config.

If you are creating a new Active Commerce instance, ensure you have followed the directions in the Installation / Quick Start documentation to modify the Web.config, specifically the addition of the CassetteHttpModule and CassetteHttoHandler in and .

Have more questions? Submit a request

Comments