代码之家  ›  专栏  ›  技术社区  ›  KenD Abbas Hadavandi

无法部署ml.net,“缺少”fasttreenative.dll

  •  0
  • KenD Abbas Hadavandi  · 技术社区  · 6 年前

    我有一些使用Microsoft ML.NET库(通过nuget)的C代码(vs2017,.net 4.71)。它在我自己的Windows10开发机器上运行良好,但是当我将它部署到生产服务器上时,我得到了异常

    (内部异常0)System.dllNotFoundException:无法加载dll“FastTreenActive”:找不到指定的模块。 (来自hresult的异常:0x8007007e)

    服务器是Windows Server 2016 x64,安装了.NET 4.71,代码是针对x64构建的。 FastTreeNative.dll 在可执行路径中。跟随 a related issue ,我从 packages.config 到包引用-全部无效。我该怎么做才能找到这个dll没有被加载的原因?

    1 回复  |  直到 6 年前
        1
  •  3
  •   KenD Abbas Hadavandi    6 年前

    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
    

    download