Rank: Newbie Groups: Member
Joined: 8/6/2018 Posts: 7
|
Hi,
Recently we purchased this pdf tool and we implemented this tool in our project to generate a pdf.
I can see the generated pdf on my development machine, but when i tested the same scenario to a test server i'm getting 401 error.
Can anyone please help us what is causing issue.
please find below the example code.
var stream = new MemoryStream(); HtmlToPdf.ConvertUrl(URL.ToString(), stream, options); return stream;
i'm getting the below error in generated pdf if i use the above line of codes.
401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Hi, You can find more information about how to authenticate with your web server here: https://www.essentialobjects.com/doc/pdf/htmltopdf/authenticate.aspxAs to exactly why you are getting 401 error, this is something that you will need to troubleshoot yourself as we have no way to tell you why your web server refused to serve the page. There are many different possible causes to this. For example, if you are trying to convert a network share path and your test server may not have access to that path, then you will get this error. Obviously in such case you would need to change Windows permission settings instead of changing anything on the converter side. Thanks!
|