We are evaluating Spire.pdf for some projects and we are testing it.
In Visual Studio the project create the PDF from HTML without problems.
But when we install the application in our test server there is an error 503 and stop the Application pool.
- Code: Select all
Excepción no controlada. Proceso terminado.
Application ID: /LM/W3SVC/1/ROOT/test/
Process ID: 3688
Exception: System.IO.FileNotFoundException
Message: No se puede cargar el archivo o ensamblado 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado.
StackTrace: en Spire.Pdf.HtmlConverter.HtmlConverter.ᜀ(String A_0, ImageType A_1, Int32 A_2)
en Spire.Pdf.HtmlConverter.HtmlConverter.Convert(String url, ImageType type, Int32 width, Int32 height, AspectRatio aspectRatio)
en Spire.Pdf.PdfSection.ᜀ(String A_0, Boolean A_1, Boolean A_2, Boolean A_3, PdfHtmlLayoutFormat A_4)
en Spire.Pdf.PdfDocument.LoadFromHTML(String Url, Boolean enableJavaScript, Boolean enableHyperlinks, Boolean autoDetectPageBreak, PdfPageSettings setting, PdfHtmlLayoutFormat layoutFormat, Boolean isLoadComplete)
en Spire.Pdf.PdfDocument.LoadFromHTML(String Url, Boolean enableJavaScript, Boolean enableHyperlinks, Boolean autoDetectPageBreak, PdfPageSettings setting, PdfHtmlLayoutFormat layoutFormat)
en newDatechTD.General.PDFGenerator.<>c__DisplayClass0_0.<Generate>b__0()
en System.Threading.ThreadHelper.ThreadStart_Context(Object state)
en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
en System.Threading.ThreadHelper.ThreadStart()
Application pool -> Enable 32 bits applications - TRUE
Windows Server 2012 / Internet Information server 8