我正在尝试使用专有库读取某些专有文件。该库带有一个.exe
文件,该文件有时在过程中间被调用。但是,此文件将引发以下错误。
Unhandled Exception: System.Exception: HarvestCalibration Error: Expecting element 'root' from namespace ''.. Encountered 'None' with name '', namespace ''.
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'AgLeaderCalibration.dll' or one of its dependencies. The specified module could not be found.
at HarvestCalibration.Program.buildTable(CalibrationInput config)
at HarvestCalibration.Program.Main(String[] args)
at CNHVoyager2.HarvestCalibration.CalibrationShim.get_config()
at CNHVoyager2.HarvestCalibration.CalibrationShim.CalculateSampleFlow(UInt16 sensor_force, Double moisture_percent)
at CNHVoyager2.V2_RecordHarvestSummary.CalculateSampleFlow(UInt16 sensor_force, Double moisture_percent)
at CNHVoyager2.CNHV2DatasetSample.FillHarvestAttributeCollection()
at CNHVoyager2.CNHV2DatasetSample.get_AttributeCollection()
at test.Program.CreateProperties(ICNHV2DatasetSample sample) in C:\Users\Joao\leaf\test\Program.cs:line 84
at test.Program.Convert(String inputCN1) in C:\Users\Joao\leaf\test\Program.cs:line 61
at test.Program.Main(String[] args) in C:\Users\Joao\leaf\test\Program.cs:line 36
快速搜索显示,在读取缓冲区[1]时Expecting element 'root' from namespace ''.. Encountered 'None' with name '', namespace ''
是一个问题。但是,我认为图书馆正在尝试在幕后使用AgLeaderCalibration.dll
的{{1}}。我以多种方式将其包含在项目中。引用,将其复制到输出目录等,均不会成功。
我不太了解C#。也许这是构建过程中的一个非常简单的问题?版本控制?
谢谢。