Server Error in '/FoP' Application.

Cannot convert a node-set which contains zero nodes or more than one node to a single node.

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.Xml.Xsl.XslTransformException: Cannot convert a node-set which contains zero nodes or more than one node to a single node.

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.

Stack Trace:


[XslTransformException: Cannot convert a node-set which contains zero nodes or more than one node to a single node.]
   System.Xml.Xsl.Runtime.XsltConvert.ToNode(IList`1 listItems) +1230283
   System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args) +579
   <xsl:template name="compiler:generated"> (3)(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, IList`1 Items, IList`1 Hashlinks) +1467
   <xsl:template name="compiler:generated">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +3032
   <xsl:template match="/">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +3811
   Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) +41
   System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer) +227
   System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, Stream results) +90
   FoPrintHandler.Helper.XsltHelper.InternalDoXsltTransformation(String xsltUrl, XmlDocument objSourceData, XsltArgumentList options, String title) in C:\src\trunk\utilitytools\FopTransfo\FoPrintHandler\App_Code\Helper\XsltHelper.cs:64
   FoPrintHandler.Helper.XsltHelper.DoXsltTransformation(SimpleMetaRequest metaRequest, String xsltUrl, String title, XsltArgumentList options) in C:\src\trunk\utilitytools\FopTransfo\FoPrintHandler\App_Code\Helper\XsltHelper.cs:29
   FoPrintHandler.Converter.FoPImplementation.HandleApacheFoPGeneric(HttpContext context, Func`2 summonMemoryStream, FileTypeHelperData fth, Parameters param, Boolean useCache) in C:\src\trunk\utilitytools\FopTransfo\FoPrintHandler\App_Code\Converter\FoPImplementation.cs:208
   FoPrintHandler.Converter.FoPImplementation.HandleRequest(HttpContext context, Parameters param) in C:\src\trunk\utilitytools\FopTransfo\FoPrintHandler\App_Code\Converter\FoPImplementation.cs:110
   FoPrintHandler.FoPMeta.ProcessRequest(HttpContext context) in C:\src\trunk\utilitytools\FopTransfo\FoPrintHandler\FoPMeta.ashx.cs:29
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0