|
Rank: Newbie Groups: Member
Joined: 10/4/2013 Posts: 2
|
Good Evening,
I'm Having some troubles with HTMLtoPDF.ConvertUrl. Its been 2 days that just stopped working on my development machine (on our production server and the other dev machine works fine).
It cant be the code because it won't work even if i try to run our baseline project (and the others machines work well).
It seems to be some kind of problem with the credentials it is using but we can't afford to change to use HTMLtoPdf.ConvertHTML since the project is already big and in production.
The only things that changed were my intern IP and the fact that now I'm using a virtual machine to connect to my dev machine (shoudn't be a problem).
The full error is listed below: Failed to convert Url '/*Local URL*/'.(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.)
PS: if i try to call the url on my browser it works fine. And if I try to call an outside url (for example google) it works.
Any help is appreciated.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, Your browser and the HTML to PDF converter are two totally unrelated things. Having logged into your browser does not mean the HTML to PDF converter is logged in. If your server requires login, then you must login. You can find more information about page authentication here: http://www.essentialobjects.com/doc/4/htmltopdf/authenticate.aspxThanks!
|
|
Rank: Newbie Groups: Member
Joined: 10/4/2013 Posts: 2
|
Hello, Thank you for the fast reply.
I was able to generate the PDF by inserting the login and password of my application in the code. But this is only a temporary solution because I still don't know why this error only occur on my pc and the other pc, with the same code is able to run.
I would like some ideas why this happens (just to make sure my others projects don't break too). But since I can debug my project again its not an emergency.
Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
You may want to look into IIS administration/HTTP authentication in order to find out the root cause. The particular problem that you have is why your Web server requires authentication for your computer. This has nothing to do with us. To your server we are just a client, and if your server asks for username/password, our library offers you a way to provide it. But we have no way of knowing why your server wants it.
Thanks!
|
|