NullReferenceException - EditPageTypeField.OnLoad

Member since: 2008

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


#30814 Jun 23, 2009 10:32
  • Peter Sunna
    Member since: 2002
    Which episerver version are you using? Any modules installed?
    #30847 Jun 24, 2009 14:22
  • peter
    Member since: 2008

    Episerver 5.2.375.133

    Running on vista 64

    No extra modules


    #30869 Edited, Jun 25, 2009 9:01

    I have the same problem. Does anyone know solution?

    #35738 Dec 22, 2009 12:03
  • fredrik.haglund
    Member since: 2007

    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.

    #35741 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.

    #35745 Dec 22, 2009 13:02

    Thank you. this was very helpful!

    #35746 Dec 22, 2009 13:12
  • Eric
    Member since: 2007

    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" />


    #53772 Sep 22, 2011 13:31