Try our conversational search powered by Generative AI!

NullReferenceException - EditPageTypeField.OnLoad

Vote:
 

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
Vote:
 
Which episerver version are you using? Any modules installed?
#30847
Jun 24, 2009 14:22
Vote:
 

Episerver 5.2.375.133

Running on vista 64

No extra modules

 

#30869
Edited, Jun 25, 2009 9:01
Vote:
 

I have the same problem. Does anyone know solution?

#35738
Dec 22, 2009 12:03
Vote:
 

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:
http://blog.fredrikhaglund.se/blog/2009/12/22/debugging-exception-has-been-thrown-by-the-target-of-an-invocation/

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
Vote:
 

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
Vote:
 

Thank you. this was very helpful!

#35746
Dec 22, 2009 13:12
Vote:
 

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"
             virtualPath="~/cms/"
             physicalPath="C:\Program Files\EPiServer\CMS\5.2.375.236\application\UI"
             type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider,EPiServer" />

 

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