Help! Getting this nasty error on a 3.0.6 > 4.0.2 install. Have to reboot the app pool to fix it.
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
umbraco.BusinessLogic.Utils.TypeFinder.FindClassesOfType(Boolean useSeperateAppDomain) +27
umbraco.BusinessLogic.Actions.Action.RegisterIActions() +71
umbraco.BusinessLogic.Actions.Action..cctor() +150
[TypeInitializationException: The type initializer for 'umbraco.BusinessLogic.Actions.Action' threw an exception.]
umbraco.BusinessLogic.Actions.Action.GetJavaScriptFileReferences() +0
umbraco.cms.presentation._umbraco.RenderActionJS() +47
umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e) +1050
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Guys, figured it out. Turns out it was an old version of Doc2Form. I actually deleted the forms that utilized it, but bots were hitting the URL's with postbacks that caused the error! :-)
By the way, installing ELMAH was sooooooooooo helpful to solving this problem! Look at this great post:
Object not set... error
Help! Getting this nasty error on a 3.0.6 > 4.0.2 install. Have to reboot the app pool to fix it.
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.
Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] umbraco.BusinessLogic.Utils.TypeFinder.FindClassesOfType(Boolean useSeperateAppDomain) +27 umbraco.BusinessLogic.Actions.Action.RegisterIActions() +71 umbraco.BusinessLogic.Actions.Action..cctor() +150 [TypeInitializationException: The type initializer for 'umbraco.BusinessLogic.Actions.Action' threw an exception.] umbraco.BusinessLogic.Actions.Action.GetJavaScriptFileReferences() +0 umbraco.cms.presentation._umbraco.RenderActionJS() +47 umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e) +1050 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Do you have any third party (i.e. not Umbraco core) dlls?
They may not have been upgraded to the v4 event model. There were considerable changes between v3 and v4 in this area.
Try checking if newer versions of 3rd party packages are available.
Is this a constant error? Or does it happen intermittently and an app pool reboot always fix it?
It's intermittent. Things will work well for awhile, then it crops up all the sudden.
What about the 3rd party dll's? You sure all the dll's you have are compatible with v4?
Guys, figured it out. Turns out it was an old version of Doc2Form. I actually deleted the forms that utilized it, but bots were hitting the URL's with postbacks that caused the error! :-)
By the way, installing ELMAH was sooooooooooo helpful to solving this problem! Look at this great post:
http://blog.leekelleher.com/2009/04/23/integrating-elmah-with-umbraco/
I had a little difficult setting it up because the instructions are for v3, but I figured it out. Can't remember exactly what I did...
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.