Welcome Guest Search | Active Topics | Sign In | Register

ASPX to PDF Options
Lenin
Posted: Thursday, June 30, 2011 7:34:03 PM
Rank: Newbie
Groups: Member

Joined: 6/29/2011
Posts: 3
Hello:

We have a troubble with the control ASPXToPDF, the stuff is:

We have a aspx page rendered and with a button inside it we invoke the control in order to convert the page, and the result is this error on the response page:

Error Caught in Page_Error event</b><hr><br><br><b>Error in: </b>http://72.249.60.132/cartilla/wbfCartillaInteractiva.aspx<br><b>Error Message: </b>Can not find file 'C:\WINDOWS\assembly\GAC_MSIL\EO.Pdf\3.0.49.2__e92353a6bf73fffc\EO.Pdf.Html.dll', this file is needed to perform HTML to PDF conversion.<br><b>Stack Trace:</b><br> at EO.Pdf.HtmlToPdfException.b(Exception A_0)
at EO.Pdf.Internal.j0.g()
at EO.Pdf.HtmlToPdf.a(j0 A_0)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc)


Before runnin and installing the web app in our server we configured the web.config with this tags:

<httpModules>
<add name="EOWebRuntime" type="EO.Web.Runtime,EO.Web"/>
</httpModules>
</system.web>

and we copied the eo_web.ashx file in the root of our web app, as the instructions explain.

So we need your help in order to solve this error and make our app work, or tell us what step we aren't making in order to install and deploy our app.

thanks and reggards.
eo_support
Posted: Thursday, June 30, 2011 7:37:51 PM
Rank: Administration
Groups: Administration

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

Please try to manually copy EO.Pdf.Html.dll to the following location:

C:\WINDOWS\assembly\GAC_MSIL\EO.Pdf\3.0.49.2__e92353a6bf73fffc\

This is needed because your project is referencing EO.Web.dll from the GAC. So EO.Pdf.dll is loaded from that directory. The HTML to PDF converter will always try to load EO.Pdf.Html.dll from the same directory where EO.Pdf.dll is loaded. Thus if you were referencing the DLL from your app's bin directory, then you need to put EO.Pdf.Html.dll in your app's bin directory; If you are referencing the DLL from GAC, then you need to put EO.Pdf.Html.dll in the GAC directory.

Thanks!
Lenin
Posted: Friday, July 1, 2011 1:21:30 PM
Rank: Newbie
Groups: Member

Joined: 6/29/2011
Posts: 3
Hi, again:

Well, the solution above helped me to resolve my first obstacle, but now I have another problem. The same app returns the next error, I have read some topics about and I supose that the error is cause my app server uses a proxy, I don't know, I hope somebody could help us. In my Visual Studio it works perfectly but when I puplish my app at the server I get this error:

Error Caught in Page_Error event
Error in: http://72.249.60.132/cartilla/wbfCartillaInteractiva.aspx
Error Message: Object reference not set to an instance of an object.
Stack Trace:
at CartillaInteractiva.wbfCartillaInteractiva.Page_Load(Object sender, EventArgs e) in F:\Documentos\GoNet - Juan
Manuel\Pfizer\CartillaInteractiva\Pfizer-CartillaInteractiva\CartillaInteractiva\wbfCartillaInteractiva.aspx.cs:line 41 at
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs
e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)

Thanks and reggards!
eo_support
Posted: Friday, July 1, 2011 3:00:10 PM
Rank: Administration
Groups: Administration

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

This does not appear to have anything to do with us. Your stack trace is not showing any of our code at all.

Thanks!


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.