Welcome Guest Search | Active Topics | Sign In | Register

HtmlToPdfException when running on VM Options
rpittman
Posted: Thursday, March 19, 2015 3:33:32 PM
Rank: Newbie
Groups: Member

Joined: 3/17/2015
Posts: 8
I have downloaded an evaluation copy of EO and put together a prototype to test the HTML to PDF product. I am developing on Visual Studio 2012. I have installed the EO.Pdf 6.0.31.2 version using a download from yesterday.

When I run on a physical system, things work fine. When I run the same code on another developer's VS2012 running on a VM I get the exception below. When I deploy this to a development application server that is on a VM it works.

Any ideas on what is causing this to fail on the Visual Studio on a VM?


{EO.Pdf.HtmlToPdfException: Conversion failed. Failed to initialize conversion (1). ---> EO.Pdf.Internal.aoe: Failed to initialize conversion (1).
at EO.Pdf.Internal.ma.a(ma A_0, apq A_1)
at EO.Pdf.Internal.ma.a(afp A_0, Boolean A_1)
at EO.Pdf.Internal.ma.a(afp A_0)
--- End of inner exception stack trace ---
at EO.Pdf.Internal.ma.a(afp A_0)
at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0)
at EO.Pdf.HtmlToPdfSession.Create(HtmlToPdfOptions options)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc)
at EO.Pdf.Mvc.MVCToPDF.a.a()
at EO.Pdf.Mvc.MVCToPDF.a()
at EO.Pdf.Mvc.RenderAsPDFActionFilter.OnResultExecuted()
at EO.Pdf.Mvc4.RenderAsPDFAttribute.System.Web.Mvc.IResultFilter.OnResultExecuted(ResultExecutedContext filterContext)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)}
eo_support
Posted: Thursday, March 19, 2015 3:39:50 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

What is your Windows version? Do you see any entry in your event log?

Thanks!
rpittman
Posted: Thursday, March 19, 2015 4:01:18 PM
Rank: Newbie
Groups: Member

Joined: 3/17/2015
Posts: 8
The systems that run Visual Studio are Windows Seven.

I did find some information in the Event Viewer during these.

In general they reflect what is in the stack trace. I do see an entry as follows:

The directory specified for caching compressed content C:\Users\xxxxxx\AppData\Local\Temp\iisexpress\IIS Temporary Compressed Files\Clr4IntegratedAppPool is invalid. Static compression is being disabled.
eo_support
Posted: Thursday, March 19, 2015 4:58:46 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Please try to add EO.Pdf.dll into GAC (You can use our GACTools.exe which you will find in the installation folder) and see if that resolves the problem.

Thanks!
rpittman
Posted: Tuesday, March 24, 2015 1:12:42 PM
Rank: Newbie
Groups: Member

Joined: 3/17/2015
Posts: 8
After a lot of trial, we have found that the thin client software that we are using is preventing this from running. We are working on finding the fix for that software.
eo_support
Posted: Tuesday, March 24, 2015 4:40:39 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
OK. Thanks for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.