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.
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).
@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.
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:
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!
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?
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).
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?
@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.
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.
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.
is working on a reply...