Problems with ExpertPDF working on discountasp.net

Discussion in 'ASP.NET / ASP.NET Core' started by dmainmon, Feb 15, 2012.

  1. I have almost the exact same problem mentioned in this post: http://community.discountasp.net/showthread.php?t=10548

    discountasp.net staff refers to the FAQ page of ExpertPDF. However, the instructions on their FAQ page to fix the issue look like they need to be performed by discountasp.net staff.

    My error:
    System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> ExpertPdf.HtmlToPdf.HtmlConvertException: Could not render the HTML string. Could not initialize the html converter object.Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Set 'Full' trust level for ASP.NET application. Unblock the assembly using the 'Unblock' button from the file Properties tab if it was blocked by Windows OS or add the assembly to GAC..

    I added full trust to the web config but that didn't fix anything.

    Has anyone been able to get the ExpertPDF components to work?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    This looks like the component is trying to access some windows component that the web server do not have permission over.

    Are you trying to convert a webpage into PDF using the component?
     

Share This Page