Implementation in Sharepoint 2010

Hello everyone.

I’am trying to display images in a Sharepoint Webpart made of pages of an PDF File.

When I deploy the solution in a non Sharepoint webpart (like an aspx solution) the program makes an image as I expect. Whoever when I try to deploy (or even build) the solution to my Sharepoint site it gives me the following warningfor every assembly that I referenced in my project:

Warning 1 The primary reference “Aspose.Pdf.Kit, Version=5.0.0.1, Culture=neutral, PublicKeyToken=73a370f7bee41424, processorArchitecture=MSIL” could not be resolved because it has an indirect dependency on the .NET Framework assembly “mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” which has a higher version “4.0.0.0” than the version “2.0.0.0” in the current target framework. PDFAspose

And this error:

C:…\VisualWebPart1UserControl.ascx.cs(5,7): error CS0246: The type or namespace name ‘Aspose’ could not be found (are you missing a using directive or an assembly reference?)

(And o course the assembly is referenced in my project, while I’am programming, the Visual Studio IDE doesnt give me warnings or errors in the code)

Has anyone faced this kind of error-warnings?.

Hope you can help me, I’am pretty interested in buying this DLLto make this kind of solutions for my enterprise.

Grettings!

Hi Eduardo,

There are DLLs for multiple .NET Framework versions present in the installation directory of the Aspose.Pdf.Kit for .NET. Please try to add reference to the DLL in the net4.0 folder from the installation directory and then execute your project.

However, if it still doesn’t resolve your issue then please share some more details regarding your working environment. Also, please share the sample application with us, so we could reproduce the issue at our end.

We’re sorry for the inconvenience and looking forward to help you out.
Regards,