SaaS CMS has officially launched! Learn more now.

NullReferenceException - EditPageTypeField.OnLoad


I get this an nullReferenceExeption when i try to add or edit propertys to a page type.
Has anyone experienced the same problem?

[NullReferenceException: Object reference not set to an instance of an object.]
EPiServer.UI.Admin.EditPageTypeField.OnLoad(EventArgs e) +507
System.Web.UI.Control.LoadRecursive() +65
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427


Jun 23, 2009 10:32
Which episerver version are you using? Any modules installed?
Jun 24, 2009 14:22

Episerver 5.2.375.133

Running on vista 64

No extra modules


Edited, Jun 25, 2009 9:01

I have the same problem. Does anyone know solution?

Dec 22, 2009 12:03

Could be a number of reasons. Maybe inconsisten data in EPiServer database?

But first check that EPiServer User Interface files are in sync with binaries - so the apx/ascx files are matching the dlls in your project.

More clues are needed to provide a better answer!

Hook up the debugger and follow these instructions:

In this case it would be valuable with information on all local varibles but also the values of the object.

Dec 22, 2009 12:27

Thank you for your reply, Fredrik.

I think the problem is in inconsistent data in DB. We have moved to newer version of EPiServer and probably were not good at it.

Dec 22, 2009 13:02

Thank you. this was very helpful!

Dec 22, 2009 13:12

Got this error today when upgraded and the solution is simple: have a look in your web.config file and you will find that you are probably missing the virtual path for UI folder. Also if you have made an upgrade from an early epi-version you probably have episerverspecific folders in you wwwroot-folder. Delete them and ad the virtual path for the UI folder and you have solvde the issue :) if this is not working you are probably having some databaseissues.


  <add name="UI"
             physicalPath="C:\Program Files\EPiServer\CMS\5.2.375.236\application\UI"
             type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />


Sep 22, 2011 13:31
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.