Content (body part) is Missing on the Page Issue

Topics: Troubleshooting
Jul 12 at 7:08 PM
Hi,

We are using orchard CMS 1.7.2 for our content management system. We made our application responsive by adding boot strap theme to support various browsers and mobile devices. We pushed this application to production recently. We got one strange issue in production i.e. Content is missing (especially body part of the content) in all content pages frequently. After restarting the application pool (IIS), the application is back to normal and loading the content properly. Below is error captured in production error log:

System.NullReferenceException: Object reference not set to an instance of an object. at System.Web.Mvc.ModelValidatorProviderCollection.<>c__DisplayClass7.<GetValidators>b__6(ModelValidatorProvider provider) at System.Linq.Enumerable.<SelectManyIterator>d__142.MoveNext() at System.Web.Mvc.ModelValidator.CompositeModelValidator.<Validate>d__1.MoveNext() at System.Web.Mvc.DefaultModelBinder.OnModelUpdated(ControllerContext controllerContext, ModelBindingContext bindingContext) at System.Web.Mvc.DefaultModelBinder.BindComplexModel(ControllerContext controllerContext, ModelBindingContext bindingContext) at Orchard.ContentManagement.MetaData.Models.SettingsDictionary.TryGetModel[T](String key) in c:\Users\xxxxxxx\Dev\rew\tfs\up2\source\Orchard\src\Orchard\ContentManagement\MetaData\Models\SettingsDictionary.cs:line 17 at Orchard.Core.Common.Drivers.BodyPartDriver.GetFlavor(BodyPart part) in c:\Users\xxxxxxx\Dev\rew\tfs\up2\source\Orchard\src\Orchard.Web\Core\Common\Drivers\BodyPartDriver.cs:line 86 at Orchard.Core.Common.Drivers.BodyPartDriver.<>c__DisplayClass7.<Display>b__4(String text, IHtmlFilter filter) in c:\Users\xxxxxxx\Dev\rew\tfs\up2\source\Orchard\src\Orchard.Web\Core\Common\Drivers\BodyPartDriver.cs:line 40 at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable1 source, TAccumulate seed, Func3 func) at Orchard.Core.Common.Drivers.BodyPartDriver.<>c__DisplayClass7.<Display>b__3() in c:\Users\xxxxxxx\Dev\rew\tfs\up2\source\Orchard\src\Orchard.Web\Core\Common\Drivers\BodyPartDriver.cs:line 40 at Orchard.ContentManagement.Drivers.ContentPartDriver1.<>c__DisplayClassf.<ContentShape>b__e(BuildShapeContext ctx) in c:\Users\xxxxxxx\Dev\rew\tfs\up2\source\Orchard\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 130 at Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator.<>c__DisplayClassa.<BuildDisplay>b__9(IContentPartDriver driver) in c:\Users\xxxxxxx\Dev\rew\tfs\up2\source\Orchard\src\Orchard\ContentManagement\Drivers\Coordinators\ContentPartDriverCoordinator.cs:line 49 at Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable1 events, Action1 dispatch, ILogger logger) in c:\Users\xxxxxxx\Dev\rew\tfs\up2\source\Orchard\src\Orchard\InvokeExtensions.cs:line 17

We tried to simulate this issue at lower environments but no luck.

Appreciate your inputs to resolve this issue

Regards,
Kamal