Total newbie at my job and when I came to work today and tried to login I got the below error. Umbraco version 4.0.4.2. Any help is appreciated. Thanks.
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.]
TheFarm.Umbraco.Lucene.Common.Configuration.IndexSet.get_IndexDirectory() +54
TheFarm.Umbraco.Lucene.Common.Configuration.IndexSetExtensions.ToIndexerData(IndexSet set) +496
TheFarm.Umbraco.Lucene2.UmbracoIndexer..ctor(String setName) +146
TheFarm.Umbraco.Lucene2.IndexingActionHandler..ctor() +170
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +146
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +298
System.Activator.CreateInstance(Type type, Boolean nonPublic) +79
umbraco.BusinessLogic.Actions.Action.RegisterIActionHandlers() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\Actions\Action.cs:52
umbraco.BusinessLogic.Actions.Action..cctor() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\Actions\Action.cs:37
[TypeInitializationException: The type initializer for 'umbraco.BusinessLogic.Actions.Action' threw an exception.]
umbraco.BusinessLogic.Actions.Action.GetJavaScriptFileReferences() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\Actions\Action.cs:148
umbraco.cms.presentation._umbraco.RenderActionJS() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\presentation\umbraco\umbraco.aspx.cs:101
umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\presentation\umbraco\umbraco.aspx.cs:64
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
System.Web.UI.Control.OnLoad(EventArgs e) +132
umbraco.BasePages.BasePage.OnLoad(EventArgs e) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\businesslogic\BasePages\BasePage.cs:287
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
Version Information: Microsoft .NET Framework Version:2.0.50727.5483; ASP.NET Version:2.0.50727.5483
That's really a sad experience to start of with. I you have access to the IIS or the web.config I'll recommend that you try recycling the app pool and see if it works.
I know there is a weird bug that can make this happen occasionally in this old version of Umbraco.
Thanks for your quick response. It just started working again by itself last night. Strange. I am contacting our hosting provider to see if they did anything on their end.
It most likely is due to some app pool recycling I guess. Maybe the server is setup to recycle the app pool at a certain interval perhaps so they may not have done something manually.
Glad it's working again - Next time this happens try ask them to recycle the app pool. I'm certain it will fix the issue.
Error when trying to login
Total newbie at my job and when I came to work today and tried to login I got the below error. Umbraco version 4.0.4.2. Any help is appreciated. Thanks.
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:
Version Information: Microsoft .NET Framework Version:2.0.50727.5483; ASP.NET Version:2.0.50727.5483
Hi Erik and welcome to our :)
That's really a sad experience to start of with. I you have access to the IIS or the web.config I'll recommend that you try recycling the app pool and see if it works.
I know there is a weird bug that can make this happen occasionally in this old version of Umbraco.
Hope this helps.
/Jan
Hi Jan,
Thanks for your quick response. It just started working again by itself last night. Strange. I am contacting our hosting provider to see if they did anything on their end.
/Erik
Hi Erik
It most likely is due to some app pool recycling I guess. Maybe the server is setup to recycle the app pool at a certain interval perhaps so they may not have done something manually.
Glad it's working again - Next time this happens try ask them to recycle the app pool. I'm certain it will fix the issue.
Cheers, Jan
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.