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.
[NullReferenceException: Object reference not set to an instance of an object.]
EPiServer.Shell.Web.Mvc.HttpContextBaseExtensions.SetCulture(HttpContextBase httpContext, ICurrentUiCulture currentUiCulture) +185
EPiServer.Shell.Web.Mvc.ModuleMvcHandler.ProcessRequestInit(HttpContextBase httpContext) +27
EPiServer.Shell.Web.Mvc.ModuleMvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +16
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +155
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +134
Does it help if you set * as hostname for the site? And/or set the correct culture for that site?Admin mode-> Config -> Manage websites -> Click on your site.
Thanks for the reply. actually i configured like local.<brandname>.com/episerver . just for security purpose i put xxxxx in hostname .
i am getting "object reference not set to an instance of an object." while trying to access epicms so i cant change any configuration until i login to epicms.
If you don't have access to admin mode, you can set hostnames directly in the tblHostDefinition table.
Do you get more info in error logs?
Have you tried to set a breakpoint in global.asax.cs and catch Server.GetLastError()...
If you're using IIS, you might need to install some IIS features, including the URL Rewrite module (https://support.optimizely.com/hc/en-us/articles/115004123226-Installing-Commonly-Used-IIS-Features-Using-Powershell)
Hope this helps!
just out of curiousity, what do you have in `system.web/globalization` element in `web.config` file?
Hi All, there was some issue in my IIS and fixing those which fixed the abve error. Its not related to Episerver. Thank you all..