locked
Could not load file or assembly error? RRS feed

  • Question

  • User1566906251 posted

    Hi guys,

    This is a pretty common problem I know but I am experiencing this error:

    {"Could not load file or assembly 'XeroApi, Version=1.1.0.31, Culture=neutral, PublicKeyToken=3de03a85ae0f7251' or one of its dependencies. The system cannot find the file specified.":"XeroApi, Version=1.1.0.31, Culture=neutral, PublicKeyToken=3de03a85ae0f7251"} System.Exception {System.IO.FileNotFoundException}

    I've tried changing the architecture from AnyCPU, x86, x64 as some of the other solutions have, but no luck..

    Can you help suggest how I can solve this?

    I am developing on target framework .NET 4.5 on an x64 machine for SharePoint Solution.

    Thanks!

    Tuesday, June 18, 2013 11:42 AM

Answers

  • User1566906251 posted

    Got it working.

    Turns out for SharePoint solutions (I was working with a SharePoint solution), you need to manually add it into the package instead of just referencing the DLL.

    Go to Package folder -> Double-click -> Advanced and add it from there.

    Hope this can help someone!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 20, 2013 11:07 PM

All replies

  • User-1667469836 posted

    Hi,

    Do you have the 'XeroApi, Version=1.1.0.31 dll and referenced properly in your proj?

    Tuesday, June 18, 2013 2:41 PM
  • User1566906251 posted

    Yes, I have it referenced, please see the image here:

    xeroapireference

    I got this using Nuget package manager, however, I have also tried just manually adding the DLL but still to no avail.

    Tuesday, June 18, 2013 8:41 PM
  • User1566906251 posted

    Got it working.

    Turns out for SharePoint solutions (I was working with a SharePoint solution), you need to manually add it into the package instead of just referencing the DLL.

    Go to Package folder -> Double-click -> Advanced and add it from there.

    Hope this can help someone!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 20, 2013 11:07 PM