I wrote a utility in C# to copy files from a network directory to a SharePoint document library. When the sys admin tries to run the .exe from a non-SharePoint server, he gets the following error:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SharePoint.Client, Vers ion=126.96.36.199, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the f ile specified. File name: 'Microsoft.SharePoint.Client, Version=188.8.131.52, Culture=neutral, PublicKeyToken=71e9bce111e9429c' at SpFileUpload.Program.Main()
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Is there a way to include the assembly in my .exe so that it will run properly?
Edit: I'm using the SharePoint 2010 Client Object Model.