1
votes

I am new to AppHarbor and am getting this build error with my project (Asp.net / C# web service). My hello world worked fine and is deployed. However, this new method that I wrote connects to Exchange using EWS Managed package.

It works fine on my local, but not on AppHarbor. I have tried setting the Precompilation to False, but the error remains. Here is the detail text....Any pointers / help will be greatly appreciated.

1>Project "D:\temp\aeprsuko.xdi\input\exchangeservice\exchangeservice.sln" (1) is building "D:\temp\aeprsuko.xdi\input\exchangeservice\exchangeservice\exchangeservice.csproj" (2) on node 1 (default targets). 2>PrepareForBuild: Creating directory "obj\Release\". ResolveAssemblyReferences: Primary reference "Microsoft.Exchange.WebServices". 2>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Exchange.WebServices". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\temp\aeprsuko.xdi\input\exchangeservice\exchangeservice\exchangeservice.csproj]

2

2 Answers

0
votes

The problem is most likely that you're not pushing the relevant dll with your app, and if you are you are probably referencing it in the location it has on your local machine and lot the location that's local to your app.

Try using the NuGet package instead or make sure that you're pushing the dll with your code. There's more help on these sorts of problems in the FAQ.

0
votes

In the references for your project you can try setting "Copy Local" to true?