Help me with HtmlConverter problem

Hi, I have downloaded source code provided for "WebPageToPDF" conversion. I am using .NET 2.0 for my project and I am facing problem with "HtmlConverter" class. As soon as my code reaches to "HtmlConverter" class, it gives me exception as below.. System.IO.FileNotFoundException was unhandled by user code Message="Could not load file or assembly ''AxSHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89'' or one of its dependencies. The system cannot find the file specified." Source="Syncfusion.HtmlConverter.Base" FileName="AxSHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" FusionLog="Assembly manager loaded from: C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\mscorwks.dll\r\nRunning under executable C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\WebDev.WebServer.EXE\r\n--- A detailed error log follows. \n\r\n=== Pre-bind state information ===\r\nLOG: User = MUMBAI\\ravikumar.katragadda\r\nLOG: DisplayName = AxSHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89\n (Fully-specified)\r\nLOG: Appbase = file:///C:/Inetpub/wwwroot/WebSite1/\r\nLOG: Initial PrivatePath = C:\\Inetpub\\wwwroot\\WebSite1\\bin\r\nCalling assembly : Syncfusion.HtmlConverter.Base, Version=4.202.0.31, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89.\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: Using application configuration file: C:\\Inetpub\\wwwroot\\WebSite1\\web.config\r\nLOG: Using machine configuration file from C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config.\r\nLOG: Post-policy reference: AxSHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89\r\nLOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/website1/6746a9b5/a49de883/AxSHDocVw.DLL.\r\nLOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/website1/6746a9b5/a49de883/AxSHDocVw/AxSHDocVw.DLL.\r\nLOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/WebSite1/bin/AxSHDocVw.DLL.\r\nLOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/WebSite1/bin/AxSHDocVw/AxSHDocVw.DLL.\r\nLOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/website1/6746a9b5/a49de883/AxSHDocVw.EXE.\r\nLOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/website1/6746a9b5/a49de883/AxSHDocVw/AxSHDocVw.EXE.\r\nLOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/WebSite1/bin/AxSHDocVw.EXE.\r\nLOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/WebSite1/bin/AxSHDocVw/AxSHDocVw.EXE.\r\n" StackTrace: at Syncfusion.HtmlConverter.HtmlConverter..ctor() at HTMLImage.Convert() in c:\Inetpub\wwwroot\WebSite1\HTMLImage.aspx.cs:line 63 at HTMLImage.Button1_Click(Object sender, EventArgs e) in c:\Inetpub\wwwroot\WebSite1\HTMLImage.aspx.cs:line 30 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) kindly suggest me what could be the problem and where i am doing wrong. thanks & regards, manoj singh.

1 Reply

PV Prakash Viswanathan Syncfusion Team May 4, 2018 11:40 AM UTC

Hi Manoj, 

Thanks for contacting Syncfusion support. 

It seems you are using old version(4.2.0.31) Syncfusion assemblies, which is marked as legacy. So can you please upgrade your product version to latest version of Essential studio and check the conversion and let us know the result.  

Also we suggest you to try our latest WebKit HTML converter for converting HTML to PDF, which has more features and enhancement than the IE rendering Engine. You can get the latest version of WebKit HTML converter from below link,  
WebKit HTML converter: https://www.syncfusion.com/downloads/latest-version       
   
After installing WebKit HTML Converter, you will get QtBinaries and samples from WebKit installed location  
(example: C:\Program Files (x86)\Syncfusion\WebKitHTMLConverter\XX.X.X.XX\).    
  
Refer below link for more information about WebKit HTML converter,   
  

Regards, 
Prakash V 


Loader.
Up arrow icon