Vulnerability in EPiServer.Forms
I have an EPiServer 7.5 site set up on a client server and a local version on my laptop. I recently upgraded to a new laptop and set up the site again, but this time I'm getting a NullReferenceException on all pages except the home page. Here's the stack trace:
[NullReferenceException: Object reference not set to an instance of an object.]
EPiServer.Web.PageExtensions.SiteRedirect.SiteRedirect_PreLoad(Object sender, EventArgs e) +443
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
It seems related to the friendly URL, because I do not get the error on the home page or when accessing the templates directly.
Could be related to what sites you have defined in admin mode and what those sites site url is and what hosts they have.
Check that the url in your IIS site matches what you have there in admin mode (admin/config tab->site information).
Thanks, Toni, but I only have one site defined, and it matches the one in IIS. I tried adding a second host name, but it had the same problem: all pages referenced through a friendly URL show the NullReferenceError above.
did you find a soultion to the error ?
i"m keep getting this error sometimes
I ended up doing a reinstall, and fortunately, the problem didn't resurface. I'm still not sure what the cause was.
i managed to understand the problem and fix it.
i added * to the site with the language i"m using
the first is www.xxx.xxx with ar
the second * with ar