Posted on 27/10/2015 15:15:26
It's a local project so I don't have a url to reproduce it and our test environment (which is accesible on the internet) for this project gives an error when we put ?pdf=true at the end of the url:
System.Exception: PDFClass constructor exception ---> WebSupergoo.ABCpdf9.Internal.PDFException: Unable to render HTML. Failed to configure IE 9 or above for the MSHtml engine: Access denied while writing to the registry. For IIS applications, please enable "Load User Profile" or consult MSHtmlBootstrap in the documentation. Alternatively, you can configure this registry setting manually: 1. Create registry key "Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_IVIEWOBJECTDRAW_DMLT9_WITH_GDI" (which have to be under the Wow6432Node key if the running process is 32-bit on an x64 system; the current process is 32-bit). 2. In the created key, create a DWORD value named "w3wp.exe". 3. Set the DWORD's value to 1. at WebSupergoo.ABCpdf9.Doc.AddUrlHtml(String urlOrHtml, Boolean isHtml, Boolean paged, Int32 width, Boolean disableCache) at WebSupergoo.ABCpdf9.Doc.AddImageUrl(String url, Boolean paged, Int32 width, Boolean disableCache) at WebSupergoo.ABCpdf9.Doc.AddImageUrl(String url) at Dynamicweb.PDFClass..ctor(String strUrl, Boolean landscape, Boolean letter, Int32 leftRightMargin, Int32 topBottomMargin, PaperSize pageSize) --- End of inner exception stack trace --- at Dynamicweb.PDFClass..ctor(String strUrl, Boolean landscape, Boolean letter, Int32 leftRightMargin, Int32 topBottomMargin, PaperSize pageSize) at Dynamicweb.Frontend.PageView.Output()
I've tried it with another project which is live, on the production environment it works, on the test environment the same error and local also a blank pdf.
I'm running Windows 8.1, IIS 8.5 and IE11.