Monthly Archive: June 2025

Changing Optimizely property return type yields MissingMethodException on getter

I was faced with a somewhat unexpected MissingMethodException changing a property type from string to XhtmlString while making changes to an Optimizely website for my current client. I’ve done this sort of change on mant occations, and moving from a string to an XhtmlString should not cause a problem. The exception seemed to be thrown on a simple Html.PropertyFor call in the view file. This …

Object reference not set to an instance of an object in EPiServer.Shell.Web.Mvc.HttpContextBaseExtensions.SetCulture method

I ran in to this problem setting up an older Optimizely website running on .Net Framework. The view mode of the website worked just fine, however, when trying to access the edit mode via /episerver/cms, the following exception was thrown. Getting at least some hints from the post Object Reference while trying to access epicms in local machine – https://local.XXXX.com/episerver on the forum, I realized …