I have received a few inquires about users getting the following error when they try to execute the NCo Samples provided by DataXstream:
Cannot get destination XXX — no destination configuration registered
This error is caused because the .NET Framework is unable to locate the sapnco assembly file.
To fix this issue, you simply need to copy the assembly files to the directory where the executable is located. You can have Visual Studio do this for you during project build by highlighting the referenced assembly and changing the property “Copy Local” to true:
Change the property for both assembly sapnco and sapnco_utils. When you rebuild your solution, the files will be copied to the executable directory and will be able to be referenced by the .NET Framework.