Server Error in '/FoP' Application.

DTD must be defined before the document root element. Line 1, position 353.

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.XmlException: DTD must be defined before the document root element. Line 1, position 353.

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:


[XmlException: DTD must be defined before the document root element. Line 1, position 353.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +89
   System.Xml.XmlTextReaderImpl.ParseDoctypeDecl() +6547344
   System.Xml.XmlTextReaderImpl.ParseDocumentContent() +400
   System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +67
   System.Xml.XmlDocument.Load(XmlReader reader) +136
   System.Xml.XmlDocument.LoadXml(String xml) +190
   FoPrintHandler.SimpleClasses.SimpleMetaRequest.ExecuteRequest() in C:\src\trunk\utilitytools\FopTransfo\FoPrintHandler\App_Code\SimpleClasses\SimpleMetaRequest.cs:37
   FoPrintHandler.Helper.XsltHelper.DoXsltTransformation(SimpleMetaRequest metaRequest, String xsltUrl, String title, XsltArgumentList options) in C:\src\trunk\utilitytools\FopTransfo\FoPrintHandler\App_Code\Helper\XsltHelper.cs:27
   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