Problem with HtmlConverter

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.

4 Replies

AD Administrator Syncfusion Team June 21, 2006 07:19 PM UTC

Hi Manoj, Please refer to the response posted here http://www.syncfusion.com/support/forums/message.aspx?MessageID=45439 Best regards, Stephen. >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.


RA Ramandalahy February 18, 2018 05:58 PM UTC

Download


JA Jitendra Agrawal June 25, 2018 11:03 AM UTC

I've also tired Problem with HtmlConverter want to ...convert my webpage in local now live here link http://www.prepglobe.com/jitendra-agrawal-gmat-trainer-delhi/ the aligment no so good in mobile view let me know how i can improve that....


PV Prakash Viswanathan Syncfusion Team June 26, 2018 10:15 AM UTC

Hi Jitendra Agrawal, 

Thanks for contacting Syncfusion support. 

We have converted the provided online link to PDF using our IE and WebKit HTML converter with latest version. Both converters are working fine with the provided link in our end. If you are using older version of HTML converter, please upgrade to latest version. We have attached the output PDF documents for your reference. Please find the documents from below link, 
   
Please refer below links for more information about HTML to PDF conversion,    
 
If you still getting the trouble with the HTML conversion, please provide more details about the issue and code snippet, product version, output PDF document, environment details such as OS, bit version etc., So that we can analyze and assist you further on this.  
 
Regards, 
Prakash V 


Loader.
Up arrow icon