When we deploy our conversion code to production server, using Windows Server 2008 - our code gives following error:
Line of code that fails:
HtmlToPdfResult result = html.Convert("
http://google.com", ImageType.Metafile, (int)width, -1, AspectRatio.KeepWidth);
MESSAGE: Exception of type 'System.Web.HttpUnhandledException' was thrown.
STACK TRACE: at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.Util.AspCompatApplicationStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)