views:

759

answers:

2

I have added a reference to a dll (sharpPDF) to my .net project. In the code it has picked up the dll and I can use it. When I deploy by sharepoint webpart i get the following error:

Could not load file or assembly 'sharpPDF, Version=1.0.3511.18105, Culture=neutral,
PublicKeyToken=f099e668beaaa0f9' or one of its dependencies. The system cannot find the
file specified.

I am deploying the webapp by using STSDEV. I have tried clearing out C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files but this does not solve the problem.

Any ideas what could be going wrong?

+3  A: 

You need to make sure that the sharpPDF dll is registered in the GAC.

Go to %Windows%\assembly. If sharpPDFisn't there with version 1.0.3511.18105, you need to install it to the GAC on the server. Simply drag it into that folder in Windows Explorer, and it should install itself.

Eric
Also you need to do an IISRESET after placing the dll in to GAC.
Kusek
Worked great :)
John
A: 

This question is not related to PDFsharp so this tag should be removed.

PDFsharp Team