Welcome Guest Search | Active Topics | Sign In | Register

Failed to convert Url Options
BHS
Posted: Friday, August 17, 2012 4:17:57 AM
Rank: Newbie
Groups: Member

Joined: 8/17/2012
Posts: 2
I want to generate the pdf file for a page on the localhost.
I use the EO.Pdf dll in a window form.

My website has only windows authentication enabled.

I get the following error :

Quote:
EO.Pdf.HtmlToPdfException: Failed to convert Url 'http://localhost/TestSolution/SavePDF.aspx'.(401:The requested resource requires user authentication. This is an error returned by the Web server, not by the HTML to PDF converter. Please try to visit the same Url with your browser to verify whether the Url is valid.)
at EO.Pdf.Internal.dg.a(String A_0, Boolean A_1)
at EO.Pdf.Internal.dg.b(HtmlToPdfOptions A_0, String A_1, Boolean A_2)
at EO.Pdf.Internal.dg.a(bs A_0)
at EO.Pdf.Internal.lo.c.a(Byte[] A_0)


If I enabled anonymous on the website, it is working (it seems my user is not retrieved by the dll).
I visit the same url with my browser, and it is working for both settings.

Any idea of what can be wrong ?
eo_support
Posted: Friday, August 17, 2012 9:34:21 AM
Rank: Administration
Groups: Administration

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

What version do you use? Our early versions do not support Windows authentication. Only the latest version supports that.

Thanks!
BHS
Posted: Friday, August 17, 2012 9:54:08 AM
Rank: Newbie
Groups: Member

Joined: 8/17/2012
Posts: 2
Hi,

Thanks for you quick reply. I'm using EO.Pdf 2012.
eo_support
Posted: Friday, August 17, 2012 10:03:28 AM
Rank: Administration
Groups: Administration

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

Please update to the latest build first. The latest has a DLL version of 4.0.32, you can download it from our download page. If that still has problem, try call ConvertUrl from a simple console application interactively from your debugger, or use our sample application to convert the same Url and see if that works. The HTML to PDF converter uses the current calling thread's user ID to authenticate with the server, that can be different from your current log in user.

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.