We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

BadImageFormatException in 'Syncfusion.GeckoHtmlRenderer.Base'

Platform: WinForms |
Control: PDF
Tags: pdf, htmltopdf, gecko

BadImageFormatException in 'Syncfusion.GeckoHtmlRenderer.Base'

When you overcome the BadimageFormatException while using Syncfusion.GeckoWrapper.dll, you need to register the GeckoWrapper.dll in the server. The following steps shows how to register the GeckoWrapper in server.

  1. Run the Visual Studio Developer Command Prompt as Administrator.
  2. In the command Prompt window navigate the folder that contains your XulRunner-2.0.sdk\bin. Example: C:\Program Files\Syncfusion\Essential Studio\\XulRunner-2.0.sdk\bin\
  3. Enter the following command,

regsvr32  Syncfusion.GeckoWrapper.dll


Also, in order to register successfully, Gecko wrapper requires the following to be installed in the server:

  • VC++ 2010 express edition, which is necessary for installing the required debug assemblies (msvcr100d.dll).
  • VC++ 2008 (SP1) express edition, which is necessary for installing the ATL90.dll.
  1. Gecko SDK is built for x86 configurations and in order to enable 32bit mode, go to the Application Pool in IIS (Internet Information services). Right click and select “Advance settings” and change the section named: “Enabled 32-bit Applications” to true.

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile