Rank: Guest Groups: Guest
Joined: 5/27/2007 Posts: -34
|
One of our customers purchased a license for EO.Pdf and we're trying to get to function in a partial trust environment. From what I've found on this forum this is not possible. But maybe it is :) Here's what we've tried, maybe we're missing something to get it to run properly:
* installed the assembly in the GAC * added it as a fullTrustAssembly in the system web.config * using Sysinternals Process Monitor, fixed all "access denied" errors on file system directories and registry keys
Now the question is: What "IPermission" class does it require (e.g which IPermission class needs elevated permissions, such as "ReflectionPermission", or does it have its own (like MySQL Connector/NET now has the MySqlClientPermission class)?
The Exception it throws is:
Insufficient permissions to start EO.Pdf HTML to PDF converter, please check whether your application's trust level is set to full.
[...] Line 19: EO.Pdf.HtmlToPdf.ConvertUrl(url, doc); [...]
[Exception: Insufficient permissions to start EO.Pdf HTML to PDF converter, please check whether your application's trust level is set to full.] EO.Pdf.HtmlToPdfSession.d() +98 EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) +92 EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options) +58 EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc) +7 ASP.converturl_aspx.Page_Load(Object sender, EventArgs e) in d:\www\iis-04\www\ConvertUrl.aspx:19 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +91 System.Web.UI.Control.LoadRecursive() +74 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
[...] Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.261
Any help is much appreciated.
Kind regards,
Jan Reilink VEVIDA Services
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
You can not use EO.Pdf in,partial trust. It requires full trust to run.
Thanks
|
Rank: Guest Groups: Guest
Joined: 5/27/2007 Posts: -34
|
Thank you for your reply. Not being able to run it in partial trust was my fear.
Are there any thoughts on making EO.Pdf run in partial trust? (this would also greatly benefit EO, as more hosting providers can support the assembly).
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
No. I do not believe so. EO.Pdf relies on Windows API extensively. For example, it needs to call into Windows to get the raw font data so that it can embed the font data into the PDF file. It is not possible for us (or any of other similar products on the market for that matter) to remove such dependency on Windows APIs. So it must have unmanaged permission to run. Usually unmanaged permission is only granted in full trust. That's why EO.Pdf always requires full trust.
Thanks!
|