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.
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.
Member
1 Points
11 Posts
Could not load file or assembly error?
Jun 18, 2013 11:42 AM|OCSNew|LINK
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!
Participant
1403 Points
475 Posts
Re: Could not load file or assembly error?
Jun 18, 2013 02:41 PM|Bimalvv|LINK
Hi,
Do you have the 'XeroApi, Version=1.1.0.31 dll and referenced properly in your proj?
Member
1 Points
11 Posts
Re: Could not load file or assembly error?
Jun 18, 2013 08:41 PM|OCSNew|LINK
Yes, I have it referenced, please see the image here:
I got this using Nuget package manager, however, I have also tried just manually adding the DLL but still to no avail.
Member
1 Points
11 Posts
Re: Could not load file or assembly error?
Jun 20, 2013 11:07 PM|OCSNew|LINK
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!