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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error registering Syncfusion.GeckoWrapper.dll

Thread ID:

Created:

Updated:

Platform:

Replies:

105025 Sep 3,2012 01:12 PM UTC Sep 17,2014 12:54 PM UTC WinForms 10
loading
Tags: PDF
Joshua
Asked On September 3, 2012 01:12 PM UTC

Hi,

I've been trying to test HTML to PDF conversion using the Gecko engine via the
GeckoHtmlRendererControl class, but when I try to register the Syncfusion.GeckoWrapper DLL as described in the online documentation I get the error:

'The application has failed to start because its side-by-side configuration is incorrect.'

When I check the event log I find the error:

'Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found'

As far as I can tell the DLL it is looking for is installed as part of Visual Studio 2008, but shouldn't be redistributed as it is for debug only.

Is this correct? Am I missing a step or is there somewhere I can get this DLL?

Thanks

Geetha M [Syncfusion]
Replied On September 4, 2012 07:28 AM UTC

Hi Joshua,

Thank you for your interest in Syncfusion products.

GeckoWrapper.dll requires ATL90.dll & msvcr90d.dll to be present in the machine. You can get those assemblies by installing VC++ 2008 (SP1) Express edition in the machine.

Here are the steps to follow:

1. Install Visual C++ 2008 Express Edition with SP1 from the following link:

http://www.microsoft.com/en-in/download/details.aspx?id=14597

2. Copy the XulRunner-2.0.sdk (shipped with install – {Installed Drive}:\Program Files\Syncfusion\Essential Studio\{version number}\XulRunner-2.0.sdk\bin\) to the server.

3. Register the Syncfusion.GeckoWrapper.dll using the following command in command prompt:

regsvr32 Syncfusion.GeckoWrapper.dll

Please try this and let me know if you have any questions.

Regards

Geetha


Geetha M [Syncfusion]
Replied On September 4, 2012 07:28 AM UTC

Hi Joshua,

Thank you for your interest in Syncfusion products.

GeckoWrapper.dll requires ATL90.dll & msvcr90d.dll to be present in the machine. You can get those assemblies by installing VC++ 2008 (SP1) Express edition in the machine.

Here are the steps to follow:

1. Install Visual C++ 2008 Express Edition with SP1 from the following link:

http://www.microsoft.com/en-in/download/details.aspx?id=14597

2. Copy the XulRunner-2.0.sdk (shipped with install – {Installed Drive}:\Program Files\Syncfusion\Essential Studio\{version number}\XulRunner-2.0.sdk\bin\) to the server.

3. Register the Syncfusion.GeckoWrapper.dll using the following command in command prompt:

regsvr32 Syncfusion.GeckoWrapper.dll

Please try this and let me know if you have any questions.

Regards

Geetha


Joshua
Replied On September 5, 2012 09:01 AM UTC

Thanks for that, I've been able to register the DLL now and make some progress.

Unfortunately I'm still having problems - when I call the Convert method on HtmlConverter, the HtmlToPdfResult instance I get back has no RenderedImage set, and so when I try to render it I get an 'Image cannot be null' PdfException.

I've attached the code I'm using for the conversion, but I can't see anything in it that would cause the conversion to fail to produce an image.

Please let me know if you can recreate the problem or if there is anything I can check or try.

Thanks


ConvertHtml_aa4d0bc3.zip

Geetha M [Syncfusion]
Replied On September 6, 2012 05:37 AM UTC

Hi Joshua,

Thank you for the details.

Could you please make use of the following code snippet and send us the HTML if it does not work for you?

Dim document As New PdfDocument

Using renderer As New GeckoHtmlRendererControl()

      Using converter As New HtmlConverter(renderer)

            Using result As HtmlToPdfResult = converter.Convert(sHtmlPath, ImageType.Metafile, CInt(Fix(width)), CInt(Fix(height)), dimension)

                result.Render(document)

            End Using

      End Using

End Using

Regards

Geetha


Joshua
Replied On September 6, 2012 08:54 AM UTC

That did the job, the conversion seems to be working fine now.

Thanks for your help.

Geetha M [Syncfusion]
Replied On September 7, 2012 04:15 AM UTC

Hi Joshua,

Glad to hear that the problem was resolved. Please let us know if you have any other questions.

Regards
Geetha

Jeremy
Replied On July 1, 2014 06:35 PM UTC

Hello,

I had the same problem with with Syncfusion 12.1.0.43.  Will Syncfusion have an upgrade where the Visual C++ 2008 won't need to be installed or is this just a requirements to use the GeckoHtmlRendererControl class?

Thanks,

Jeremy


Eric Rosenblum
Replied On September 16, 2014 10:03 PM UTC

Hi Joshua,

Thank you for your interest in Syncfusion products.

GeckoWrapper.dll requires ATL90.dll & msvcr90d.dll to be present in the machine. You can get those assemblies by installing VC++ 2008 (SP1) Express edition in the machine.

Here are the steps to follow:

1. Install Visual C++ 2008 Express Edition with SP1 from the following link:

http://www.microsoft.com/en-in/download/details.aspx?id=14597

2. Copy the XulRunner-2.0.sdk (shipped with install – {Installed Drive}:\Program Files\Syncfusion\Essential Studio\{version number}\XulRunner-2.0.sdk\bin\) to the server.

3. Register the Syncfusion.GeckoWrapper.dll using the following command in command prompt:

regsvr32 Syncfusion.GeckoWrapper.dll

Please try this and let me know if you have any questions.

Regards

Geetha


The link in number one below no longer works, can you provide an updated link please.

In step 2 below you say "Copy the XulRunner-2.0.sdk (shipped with install – {Installed Drive}:\Program Files\Syncfusion\Essential Studio\{version number}\XulRunner-2.0.sdk\bin\) to the server."  


do you mean copy the bin folder of the source to the bin folder on the destination?  If so I really don't want to copy ALL the files as there are so many, I just want to copy the necessary files.  Please provide the list.


In step 3 regsvr32 Syncfusion.GeckoWrapper.dll

returns an error.  Any ideas?


1. Install Visual C++ 2008 Express Edition with SP1 from the following link:

http://www.microsoft.com/en-in/download/details.aspx?id=14597

2. Copy the XulRunner-2.0.sdk (shipped with install – {Installed Drive}:\Program Files\Syncfusion\Essential Studio\{version number}\XulRunner-2.0.sdk\bin\) to the server.

3. Register the Syncfusion.GeckoWrapper.dll using the following command in command prompt:

regsvr32 Syncfusion.GeckoWrapper.dll


KarthikeyanC [Syncfusion]
Replied On September 17, 2014 12:54 PM UTC

Hi Eric,

Thank you for your update.

 

Please find the modified link in the below location.

http://go.microsoft.com/?linkid=7729279

 

For registering the Gecko Wrapper, we have to copy the XulRunner once in the server and then we have run the XulRunner for registering. The error in Step-3 may due to the missing of assemblies please provide us the error message so that we can provide you the proper solution.

 

Thanks,

Karthikeyan.C


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;