我们的应用程序中使用了 Google.OrTools。当我们将它部署在 windows 容器的 microsoft/iis 映像中时,我们收到以下异常:
无法加载文件或程序集“file:///C:\NGECatCalcAPIServices\RulesDll\v3.0.2.7\Google.OrTools.dll”或其依赖项之一。尝试加载格式不正确的程序。--- 在 System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean for Introspection, Boolean在 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity,
我们还安装了 VC++ 运行时版本 2017。然后我们尝试部署最新的 Google.OrTools.dll (v6.10)。但仍然得到同样的例外。
有没有人遇到过这样的场景。如果是,如何解决?
在这方面的任何帮助将不胜感激。
我们必须复制名称以 msvcr 和 msvcs 开头的所有 dll,它们存在于 c:\windows\system32 和 c:\windows\syswow64 文件夹中
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句