Rank: Newbie Groups: Member
 
 
Joined: 4/19/2013 Posts: 2 
	 | 
		   
	     
		    Greetings I'm testing EO.Pdf to see if it fit our requirements to buy it if it does. I created a test page (an ashx file) and put it in Azure to test it and I got this:
  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: EO.Pdf.Internal.k4: Failed to initialize conversion (1).
  Source File: c:\DWASFiles\sites\pppazure\VirtualDirectory0\site\wwwroot\pdfCreator1.ashx    Line: 17
  Stack Trace: [k4: Failed to initialize conversion (1).]    EO.Pdf.Internal.lr.a(lr A_0, a A_1) +208    EO.Pdf.Internal.lr.a(hk A_0, Boolean A_1) +709    EO.Pdf.Internal.lr.a(hk A_0) +605
  [HtmlToPdfException: Convertion failed. Failed to initialize conversion (1).]    EO.Pdf.Internal.lr.a(hk A_0) +737    EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) +172    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    pdfCreator2.ProcessRequest(HttpContext context) in c:\DWASFiles\sites\pppazure\VirtualDirectory0\site\wwwroot\pdfCreator1.ashx:17    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456 
  My code is: <%@ WebHandler Language="C#" Class="pdfCreator2" %>
  using System; using System.Web;
  public class pdfCreator2 : IHttpHandler {          public void ProcessRequest (HttpContext context) {         //context.Response.ContentType = "text/plain";         //context.Response.Write("Hola a todos");         HttpResponse response = HttpContext.Current.Response;         response.Clear();         response.ClearHeaders();         response.ContentType = "application/pdf";
          //Convert to the output stream         EO.Pdf.HtmlToPdf.ConvertUrl("http://google.com.mx", response.OutputStream);
          response.End();     }       public bool IsReusable {         get {             return false;         }     }
  }
  Something is wrong? EO.pdf works with Azure? Thank you
		 
	 | 
	
		Rank: Administration Groups: Administration
 
 
Joined: 5/27/2007 Posts: 24,427 
	 | 
		   
	     
		    Hi,
  I believe you need an Azure virtual machine in order to use EO.Pdf. EO.Pdf requires full trust because it makes a lot of low level API calls. So it can't work if the server restricts permissions.
  Thanks!
		 
	 | 
	
		Rank: Newbie Groups: Member
 
 
Joined: 4/19/2013 Posts: 2 
	 | 
		   
	     
		    It was good while it lasted. Thank you.
		 
	 |