Code works fine on development
http://idealpi.azurewebsites.net/testpdf.aspx//Set the response header
HttpResponse response = HttpContext.Current.Response;
response.Clear();
response.ClearHeaders();
response.ContentType = "application/pdf";
//Convert to the output stream
EO.Pdf.HtmlToPdf.ConvertUrl("www.google.com", response.OutputStream);
response.End();
when put on website with full trust in web.config
click button and spins for while and get error:
Unable to create worker thread.
Line 37: EO.Pdf.HtmlToPdf.ConvertUrl("www.google.com", response.OutputStream);
[Exception: Unable to create worker thread.]
EO.Pdf.Internal.lo..ctor() +399
EO.Pdf.Internal.lo.a(lo A_0, List`1 A_1, Boolean A_2) +802
EO.Pdf.Internal.lo.a(hi A_0, Boolean A_1) +196
EO.Pdf.Internal.lo.a(hi A_0) +611
[HtmlToPdfException: Convertion failed. Unable to create worker thread.]
EO.Pdf.Internal.lo.a(hi A_0) +746
EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) +133
EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options) +58
EO.Pdf.HtmlToPdf.ConvertUrl(String url, Stream stream, HtmlToPdfOptions options) +50
EO.Pdf.HtmlToPdf.ConvertUrl(String url, Stream stream) +7
TestPdf.Button1_Click(Object sender, EventArgs e) in c:\DWASFiles\sites\idealpi\VirtualDirectory0\site\wwwroot\TestPdf.aspx.cs:37
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
also tried writing simple output
HtmlToPdfResult result = HtmlToPdf.ConvertHtml("<b>test</b>", doc);
and same problem
any Suggestions?