Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Every day when i log into the umbraco CMS once i have enetered my login details I am presented with Serevr error in '/' application and I am having to do an IIS reset every morning to resolve this. There doesn't appear to be any clear reason for this happening that i can see has anyone got any ideas???
Can you post the details of the server error please?
This was in the Evnet log on the server i will post more details when it happens again tomorrow and customerrors is off:
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 09/07/2010 08:14:57
Event time (UTC): 09/07/2010 07:14:57
Event ID: 6e87fb50b97f475aa030a53c1c835476
Event sequence: 3300
Event occurrence: 3
Event detail code: 0
Application domain: /LM/W3SVC/968600715/Root-1-129230719182714960
Trust level: Full
Application Virtual Path: /
Application Path: -----REMOVED FOR SECURITY--------
Machine name: UKGMFWS01
Process ID: 3916
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception type: TypeInitializationException
Exception message: The type initializer for 'umbraco.BusinessLogic.Actions.Action' threw an exception.
Request URL: ---REMOVED FOR SECURITY--------
Request path: ---REMOVED FOR SECURITY--------
User host address: -----REMOVED FOR SECURITY----
Is authenticated: False
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread ID: 7
Is impersonating: False
Stack trace: at umbraco.cms.presentation._umbraco.RenderActionJS()
at umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at umbraco.BasePages.BasePage.OnLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
When I try to log in to the CMS i get the following error and the only way to resolve this is to do an IIS reset. This happens almost on a daily basis now any help would be greatly appreciated.
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.
[NullReferenceException: Object reference not set to an instance of an object.] umbraco.BusinessLogic.Utils.TypeFinder.FindClassesOfType(Boolean useSeperateAppDomain) +21 umbraco.BusinessLogic.Actions.Action.RegisterIActions() +78 umbraco.BusinessLogic.Actions.Action..cctor() +126
[TypeInitializationException: The type initializer for 'umbraco.BusinessLogic.Actions.Action' threw an exception.] umbraco.cms.presentation._umbraco.RenderActionJS() +54 umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e) +1055 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34 System.Web.UI.Control.OnLoad(EventArgs e) +99 umbraco.BasePages.BasePage.OnLoad(EventArgs e) +12 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
________________________________________Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Do you have the website in its own app pool? Are your permissions all correct and do you have any action handlers setup?
The website has it's own app pool and no action handlers have been setup as far as i can see permissions are all correct unless I am missing something. Thanks for your speedy response.
What version of umbraco / IIS and windows are you using?
umbraco v 4.0.3 (Assembly version: 1.0.3625.27276)
Windows Server 2003 R2 sp 2
The only time i have seen errors like this are when permissions have not been setup properly on umbraco install directories and when site is not in its own app pool we have already tested those bits.
The only other thing to check is do you have any custom datatypes installed it may be one of those is causing the issue? although that usually manifests itself with yellow screen of death when you try to open a document using that datatype.
One more thing can you also check the latest entries in the database umbracolog table is there anything in there to give us a clue?
These seem to be the only things that stand out in the umbracolog table and correspond with the CMS displaying the error
Application started at 14/07/2010 06:57:45
Loading content from disk cache...
Error unpublishing node: System.TypeInitializationException: The type initializer for 'umbraco.BusinessLogic.Actions.Action' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesOfType[T](Boolean useSeperateAppDomain) at umbraco.BusinessLogic.Actions.Action.RegisterIActions() at umbraco.BusinessLogic.Actions.Action..cctor() --- End of inner exception stack trace --- at umbraco.BusinessLogic.Actions.Action.RunActionHandlers(Document d, IAction action) at umbraco.content.ClearDocumentCache(Int32 documentId) at umbraco.library.UnPublishSingleNode(Int32 DocumentId) at umbraco.presentation.publishingService.CheckPublishing(Object sender)
Xml saved in 00:00:00.0419285
Xml saved in 00:00:00.0364286
Looking at the stack trace
The type initializer for 'umbraco.BusinessLogic.Actions.Action' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
it looks like an action handler is causing the issue can you trying installing the package http://our.umbraco.org/projects/event-viewer and see what action handlers you have setup
I'd take a guess that you have an action handler which is configured in your site but it's missing a reference to an external DLL.
Have you got any packages installed on the site?
After installing the event viewer package this was the return that i recieved.
umbraco.cms.businesslogic.web.DomainDeleteHandler => cms.DLLumbraco.ActionHandlers.umbEnsureUniqueName => umbraco.DLL
Method: Access_AfterRemoveProtection => umbraco.DLL(Namespace: umbraco.presentation.nodeFactory.UmbracoSiteMapProviderAccessUpdate)
Method: Access_AfterAddMemberShipRoleToDocument => umbraco.DLL(Namespace: umbraco.presentation.nodeFactory.UmbracoSiteMapProviderAccessUpdate)
Method: Access_AfterRemoveMemberShipRoleToDocument => umbraco.DLL(Namespace: umbraco.presentation.nodeFactory.UmbracoSiteMapProviderAccessUpdate)
I have not installed any packages so anything that is there must have been standard.
have you resolved this problem?
I'm experiencing the same with one of my sites.
It doesn't have action handlers per se, but some packages and a costum data type. But I cannot see that anything is missing.
But this is also a 4.0.3 installation, and this particular version seems a little unstable to me.
May be an upgrade is the solution?
No resolution to this problem was ever found I was in contact with Umbraco Support regarding this but they wanted me to update to the latest stable version.
I personally have not upgraded as yet due to other projects but it is in the pipeline. Fingers crossed that will resolve the issue.
Personally I believe upgrading will help, as I said the v. 4.0.3 seems not so stable.
Unfortunately I have several sites on that version, but only 2 large sites - one of them being the one I have to refresh the app pool for, on a regular basis.
I don't look forward to upgrading xslt schema, checking which packages will work on next version, and so on, but I think it's necessary. Do you go for v. 4.7?
Fingers crossed for you, and please inform me if this does the trick :-)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted