When I use the PDCalendar on a live site it doesn't want to generate the xslt.
It gives this error:
Error occured
System.OverflowException: Value was either too large or too small for an Int16.
at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info)
at PDCalendar.library.(String , String )
at PDCalendar.library.GenerateDates(String _start, String _end, String _alias)
For GenerateDates example that was used: GenerateDates('2012-05-07', '2012-05-13', event)
When I test this on my localhost however, it works flawlessly. I'm stuck with this some time and can't find the problem..
Where do you see this error? Is it when you're saving the xslt in the umbraco xslt editor? Then it's probably because of some runtime stuff where the extension does not know the value when it's saved but first when it's run.
Therefore you could try marking the "skip error testing" to see if that helps.
If you're editing the xslt file outside of Umbraco then please try posting the XSLT in question and let us have a look :)
Yes the error pops up when I'm saving the xslt in the xslt-editor. I already tried "skip error testing" but then it just doesnt want to parse the xslt file:
Here is the full code of my PDCUlliCalendar.xslt file. It gerenates two Ul Li PDCalenders next to each other. I first thought this caused the problem but even though when I only created one PDCalendar, the error pops up. I'm still confused why it works locally but not on a live server...
Here's the first part of the error that was marked red:
An error occurred during a call to extension function 'GenerateDates'. See InnerException for a complete description of the error. An error occurred during a call to extension function 'GenerateDates'. See InnerException for a complete description of the error. at System.Xml.Xsl.Runtime.XmlExtensionFunction.Invoke(Object extObj, Object[] args) at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args) at System.Xml.Xsl.CompiledQuery.Query.events(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) in C:\web\Umbraco\PartsPetersime\xslt\PDCUlliCalendar.xslt:line 96 at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer) at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver) at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters) at umbraco.macro.loadMacroXSLT(macro macro, MacroModel model, Hashtable pageElements)
The second part of the error was the same error that popped up during the saving of the xslt in the editor.
Value was either too large or too small for an Int16.
Hi,
When I use the PDCalendar on a live site it doesn't want to generate the xslt.
It gives this error:
For GenerateDates example that was used: GenerateDates('2012-05-07', '2012-05-13', event)
When I test this on my localhost however, it works flawlessly.
I'm stuck with this some time and can't find the problem..
All help is welcome!
Timo
Hi Timothy
Where do you see this error? Is it when you're saving the xslt in the umbraco xslt editor? Then it's probably because of some runtime stuff where the extension does not know the value when it's saved but first when it's run.
Therefore you could try marking the "skip error testing" to see if that helps.
If you're editing the xslt file outside of Umbraco then please try posting the XSLT in question and let us have a look :)
/Jan
Hi Jan,
Thanks for the fast reply!
Yes the error pops up when I'm saving the xslt in the xslt-editor.
I already tried "skip error testing" but then it just doesnt want to parse the xslt file:
Here is the full code of my PDCUlliCalendar.xslt file.
It gerenates two Ul Li PDCalenders next to each other.
I first thought this caused the problem but even though when I only created one PDCalendar, the error pops up.
I'm still confused why it works locally but not on a live server...
Thanks for helping.
Timo
Hi Timothy
Ok, before I have a look at the code above I'm curious to find out if you get an error marked with red in the stack trace.
You can see the stack trace by adding ?umbdebugshowtrace=1 to your url - please post the error message in her as well :)
/Jan
Hi Jan,
Here's the first part of the error that was marked red:
An error occurred during a call to extension function 'GenerateDates'. See InnerException for a complete description of the error.
An error occurred during a call to extension function 'GenerateDates'. See InnerException for a complete description of the error.
at System.Xml.Xsl.Runtime.XmlExtensionFunction.Invoke(Object extObj, Object[] args)
at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
at System.Xml.Xsl.CompiledQuery.Query.events(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) in C:\web\Umbraco\PartsPetersime\xslt\PDCUlliCalendar.xslt:line 96
at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
at umbraco.macro.loadMacroXSLT(macro macro, MacroModel model, Hashtable pageElements)
The second part of the error was the same error that popped up during the saving of the xslt in the editor.
Timo
Timo,
I take it you are using the pdullicallendar.xslt right?
what happens if you you the very simple xslt (pdcalendar.xslt). Does that throw the same error?
What's the culture of the website set to?
Peter
is working on a reply...