Welcome Guest Search | Active Topics | Sign In | Register

EO.Pdf access in Windows -- Options
Alfredo
Posted: Friday, October 28, 2016 3:39:25 PM
Rank: Newbie
Groups: Member

Joined: 6/6/2014
Posts: 4
Hello Folks
We have an IIS web app that uses EO.Pdf (16.1.68.0) (.NET -- MVC etc). We are having problems with defining what kind of permissions a User needs to have to execute EO.PDF. Access to the Web site is done using Windows Authentication and impersonation. Users with high level access (admins) can run the app w/o problem. Regular users receive error (Child process not ready. nWaitResult = 1). Our question is:
Can you provide us with a potential list of files/resources that EO.Pdf uses when running in IIS so we can tweak access for our regular users. We tried using:
<trust level="High" />, <trust level="Full" /> with no luck

EO.PDF was working great, the issue came up after we upgraded EO.PDF from a older version to a newer version. This is a hosted environment an windows access is carefully monitored. Any suggestions will be greatly appreciated. Thanks in AdvancedAngel

Code snipet on how we use EO.PDF:

string result = RenderFullViewToString("Index", "_PrintLayout", visitnote);
try
{
using (MemoryStream ms = new MemoryStream())
{
pdf = HtmlToPdf.ConvertHtml(result, ms, options);
//overwrite the exisiting Last page footer if visit status is complete
if (status.ToString() == @Resources.Properties.Resources.Complete)
{
int lastPage = pdf.PdfDocument.Pages.Count;
options = BuildOptionsLastPage(constructorParms, CtnDocSys, AdmSys, status, visitnote, lastPage);
HtmlToPdf.ConvertHtml("", pdf.PdfDocument.Pages[pdf.PdfDocument.Pages.Count - 1], options);
}
}
}
eo_support
Posted: Friday, October 28, 2016 6:47:39 PM
Rank: Administration
Groups: Administration

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

Internally we use Chromium browser engine to perform the conversion and we create a child process to run the browser engine in that process. It seems that part is failing for you. It is impossible for us to review the humongous Chromium browser engine source code and provide you a list of permissions to you, so you might want to work down from the admins to the user to see what permissions the user does not have. Additionally, you can call this method in your code to override the child process exe name:

https://www.essentialobjects.com/doc/eo.base.runtime.initworkerprocessexecutable.aspx

Then explicitly grant permission to that exe to the user for which you want to run EO.Pdf and see if that helps.

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.