我有一些使用 Microsoft ML.net 庫(通過 nuget)的 C# 代碼(VS2017、.Net 4.71)。它在我自己的 Windows 10 開發機器上運行良好,但是當我將它部署到生產服務器時,出現異常(內部異常 #0) System.DllNotFoundException:無法加載 DLL 'FastTreeNative':找不到指定的模塊。(來自 HRESULT 的異常:0x8007007E)服務器是 Windows Server 2016 x64,安裝了 .Net 4.71,代碼是針對 x64 構建的。FastTreeNative.dll位于可執行路徑中。在一個相關的問題之后,我已經從packages.configPackageReference轉移到了 - 一切都無濟于事。我能做些什么來追蹤為什么沒有加載這個 DLL?
1 回答

慕運維8079593
TA貢獻1876條經驗 獲得超5個贊
我曾經dumpbin查看過的依賴項FastTreeNative.dll
Microsoft (R) COFF/PE Dumper Version 14.00.24215.1
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file FastTreeNative.dll
File Type: DLL
Image has the following dependencies:
VCRUNTIME140.dll
KERNEL32.dll
api-ms-win-crt-runtime-l1-1-0.dll
VCRUNTIME140 是 Visual Studio C++ Redistributable。稍后快速下載并安裝,問題就解決了!
- 1 回答
- 0 關注
- 302 瀏覽
添加回答
舉報
0/150
提交
取消