Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Arjan den Boer 76 posts 31 karma points
    Sep 23, 2009 @ 10:08
    Arjan den Boer
    0

    TypeInitializationException on scheduled publish

    I got an error when using the Publish At date, however the page gets published fine doing a manual publish.
    The error is:

    error  Administrator  woensdag 23 september 2009 1:00:53  Error publishing node: System.TypeInitializationException: The type initializer for 'umbraco.cms.businesslogic.datatype.controls.Factory' 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.cms.businesslogic.datatype.controls.Factory.Initialize()
    at umbraco.cms.businesslogic.datatype.controls.Factory..cctor() --- End of inner exception stack trace ---
    at umbraco.cms.businesslogic.datatype.DataTypeDefinition.get_DataType()
    at umbraco.cms.businesslogic.property.Property.MakeNew(PropertyType pt, Content c, Guid versionId)
    at umbraco.cms.businesslogic.Content.addProperty(PropertyType pt, Guid versionId)
    at umbraco.cms.businesslogic.Content.createNewVersion()
    at umbraco.cms.businesslogic.web.Document.PublishWithResult(User u)
    at umbraco.cms.businesslogic.web.Document.Publish(User u)
    at umbraco.presentation.publishingService.CheckPublishing(Object sender) 

    I can't find what's causing this error and I don't understand why it differs from manual publishing.

    Umbraco version is 4.0.2.1.

    Thanks for any advise on this!

     

     

     

  • Simon Dingley 1474 posts 3451 karma points c-trib
    Oct 02, 2009 @ 12:58
    Simon Dingley
    0

    I am also having the same issue on a site running 4.0.2.1 which only occurs during a scheduled publish - any ideas anyone?

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Oct 03, 2009 @ 01:12
    Aaron Powell
    1

    I think I may have found the problem, but I'll have to look some more into it when I get time.

    If anyone else wants to investigate I believe the problem is due to the fact that the TypeResolver class expects there to be a HttpContext when doing the resolving, something I'm not sure exists doing a scheduled publish (I'm not sure how they are run, or in what context).

  • Arjan den Boer 76 posts 31 karma points
    Oct 13, 2009 @ 10:37
    Arjan den Boer
    0

    Any news on this? I'm still getting the error on scheduled publish.

    Can anyone confirm that Publish At is actually working in Umbraco 4.0.2.1?

  • Simon Dingley 1474 posts 3451 karma points c-trib
    Oct 22, 2009 @ 12:31
    Simon Dingley
    0

    @slace what you are saying makes sense, I would be interested to know if you find anything out that confirms this and if it is or can be resolved in time for the next release.

  • Ted 5 posts 21 karma points
    Apr 29, 2010 @ 22:29
    Ted
    0

    We're experiencing this exact same problem on a 4.0.3 site, and it occurs no matter if it's a programmatic or manual publish through the UI.

  • Joakim 8 posts 27 karma points
    Jun 29, 2010 @ 09:19
    Joakim
    0

    We're experiencing this on a 4.0.2.1 Umbraco, upgraded from v3. Haven't tried programmatic publish, but this goes for manuel through UI.

    Any solutions yet?

     

    Edit: Apparently my error resolved by recycling the application pool.

     

     

  • 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.

Please Sign in or register to post replies