I recently built a new server, and have been slowly migrating all my sites from my old box to the new one. Some of the sites were built using third party components to do things like generate PDF documents. ABCPDF by websupergoo, was one of the components I was using. Unfortunately Version 6 of the component, does not play nice with Windows Server 2012 R2. So I was forced to upgrade to the latest Version 9.1. After installing the component I still was getting an Exception Error.
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 "SoftwareMicrosoftInternet ExplorerMainFeatureControlFEATURE_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 64-bit). 2. In the created key, create a DWORD value named "w3wp.exe". 3. Set the DWORD's value to 1.
So after some searching I found the solution.
Open up IIS
Select the list of Application Pools, and then click on the Application Pool that is running your Web Application, then click Advanced Settings on the Right.
By Default "Load User Profile" is set to false. Set it to True, then click ok.
Now see if your scripts are running correctly.
If you need to good easy to use well documented component in ASP.NET to create, edit, modify, PDF documents. ABCPDF by Websupergoo is great. When I made the migration from ABDPDF version 6 to version 9, all I had to do was update the DLL files in my Bin folder, and update the line in my application from
<%@ Import Namespace="WebSupergoo.ABCpdf6" %>
<%@ Import Namespace="WebSupergoo.ABCpdf9" %>
all my code from the older version worked the same in the newer version. This is great as I really didn't want to have to recode my sites for a new component.