In one of the web applications that I am deploying, I refer to one of my class libraries (Core), which is involved in starting some process (in this case sending email using SendGrid).
When I deployed my webjobs manually (uploading a ZIP file), everything worked fine. I cleaned up the deployment and redeployed it using Visual Studio 2013 and the webjob started having problems. The main problem here is that it is looking for the SendGrid DLL that my main class library references and not my console application, and it does not limit it to throwing the following error:
"Unhandled exception: System.IO.FileLoadException: Failed to load file or assembly 'SendGrid .... Version = 4.5.0.0, Culture = neutral, PublicKeyToken = 30ad4fe6b2a6aeed' or one of its dependencies. Does not match the assembly reference (exception from HRESULT: 0x80131040) "
I FTP'd to the website and found that building SendGrid effectively is not where my WebJob is located.
My question is: is there a way to force these dependencies to be copied to the correct directory when deploying using VS 2013?
Thanks,
source share