Menu

Pdf Assembly cannot be loaded

Help
mbuerckel
2009-02-08
2013-04-23
  • mbuerckel

    mbuerckel - 2009-02-08

    Hi,

    I'd really like to use PdfSharp but until now I could not make it work as the following situation describes:

    1. I've downloaded the latest version
    2. I've compiled it myself using VS 2008, resulting in PdfSharp.dll and the corresponding PdfSharp.resources.dll
    3. I copied the dll into my project and made referenced the assembly.
    4. I've written some PdfSharp-specific code, and my application (ASP.NET) compiles fine.

    Now the problem: At runtime when I want to call PdfSharp functions, I get the following runtime exception:

    FileLoadException:
    The file or assembly "PdfSharp, Version=1.2.1269.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb" or a dependency could not be found. The manifest definition that was found does not match with the assembly reference.

    What can I do?
    Anybody experienced similar problems?

    Thank you in advance!
    Regards
    Marco

     
    • PDFsharp Team

      PDFsharp Team - 2009-02-09

      Hi!

      You don't need PdfSharp.resources.dll and may delete it. Make sure you don't have two different files (one in the DE sub folder, one in the same directory as PdfSharp.dll).

      The error message probably means that a different file was found at runtime than at compile time.

      Could it be there is an older version of PdfSharp.dll somewhere on the computer?

      We invite you to visit the PDFsharp support forum:
      http://pdfsharp.s3.bizhat.com/

      Regards
      The PDFsharp team

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.