簡體   English   中英

.exe 依賴項找不到。dll

[英].exe dependency cannot find .dll

我正在嘗試使用專有庫讀取一些專有文件。 該庫帶有一個.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

快速搜索顯示, Expecting element 'root' from namespace ''.. Encountered 'None' with name '', namespace ''在讀取緩沖區 [ 1 ] 時遇到名稱為 ''、命名空間 '' 的 'None' 是一個問題。 但是,我認為該庫正在嘗試在幕后使用AgLeaderCalibration.dll ,我有.dll 我以多種方式將其包含在項目中。 參考,復制到output目錄等,沒有成功。

我不知道 C# 那么多。 也許這是構建過程中一個非常簡單的問題? 版本控制?

提前致謝。

我一直在與 CNH 支持人員聯系,事實證明您需要安裝 Visual Studio 2012 的 Visual C++ Redistributable: https://www.microsoft.com/en-us/download/details.aspx?id=30679 . 確保獲得 32 位版本 (VSU_4\vcredist_x86.exe)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM