The type 'DocToPDFConverter' exists in both 'Syncfusion.DocToPDFConverter.Base'

Can anyone help me to fix it? I've looked everywhere for a way, but to no avail.

Severity Code Description Project File Line Suppression State

Error CS0433 The type 'DocToPDFConverter' exists in both 'Syncfusion.DocToPDFConverter.Base, Version=19.3500.0.43, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' and 'Syncfusion.DocToPDFConverter.Base, Version=19.3500.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' PDFConverter 



1 Reply

LB Lokesh Baskar Syncfusion Team December 6, 2021 02:21 PM UTC

Hi Fadhil,

Thank you for contacting Syncfusion support.

From the given details, we suspect that the reported issue might be due to assemblies are not referred properly in your machine or NuGet conflicts or the project linking settings in your application.

If you are using assemblies in your application, kindly remove the Syncfusion.DocToPDFConverter.Base assembly from GAC by using the following command in command prompt(ex: VS2012 Native/Cross tools command prompt) in administrator mode.
 
gacutil -u Syncfusion. DocToPDFConverter.Base 

To know more about uninstalling the assemblies from GAC, please refer 
here.

If you are using NuGet packages, we suggest you try the below solutions to resolve the reported problem at your side:

 1.Kindly remove the NuGet packages referred in your application
 2.Delete the respective NuGet packages in “.nuget” folder which is available in “C:\Users\{XXX}\.nuget\packages” folder location.
 3.Then install the NuGet packages again in your application.
 4.Clean the solution, rebuild, and run the application.

Please let us know if you have any other questions.

Regards,
Lokesh B
 


Loader.
Up arrow icon