Object reference not set to an instance of an object. at System.Xml.XmlNode.RemoveChild(XmlNode oldChild) at System.Xml.XmlNode.RemoveAll() at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at PDCalendar.library.(String , String ) at PDCalendar.library.GenerateDates(String _start, String _end, String _alias)
I'm also getting this same error. It seems to occur randomly every few weeks. Recycling the app pool or touching the web.config seems to fix the problem. I wish I knew what was causing it.
PDCalendar GenerateDates exception as of February 2013
Hello,
I updated the binaries, per http://our.umbraco.org/projects/website-utilities/pdcalendar/pdcalendar/28435-Start-date-in-February-2012-causing-Error-parsing-XSLT, and that fixed the problem for a couple of days, but now I'm receiving the following exception again:
Object reference not set to an instance of an object.
at System.Xml.XmlNode.RemoveChild(XmlNode oldChild)
at System.Xml.XmlNode.RemoveAll()
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at PDCalendar.library.(String , String ) at PDCalendar.library.GenerateDates(String _start, String _end, String _alias)
I hope we'll see a patch for this very soon.
Thanks,
-Sheppe
And now the error has stopped with no changes being made. Not sure what's going on....
Well, it seems to have fixed itself, so this can be disregarded for now.
I'm also getting this same error. It seems to occur randomly every few weeks. Recycling the app pool or touching the web.config seems to fix the problem. I wish I knew what was causing it.
We are getting the same error on occassion which clears sometimes.
With some testing we have found
This works
<xsl:variable name="messages" select="pdcalendar:GenerateDates('2014-03-13T00:00:00','2014-08-00T00:00:00','event')" />
Note the end date day is set to 00
It also works if you change this to the number of days of the month + 1 ! i.e. 2014-08-32
This is using the latest dll
Thank you for any help with this.
Update
end dates for
Jan 2014-01-31
Feb 2014-02-28
Mar 2014-03-31
Apr 2014-04-30
work correctly
May to December crash with the correct end day
How ever if you only generate dates for 1 month.. seems ok.
is working on a reply...