简体   繁体   English

服务结构部署错误:“无法加载文件或程序集或其依赖项之一”

[英]Service Fabric Deployment Error: “Could not load file or assembly or one of its dependencies”

I'm getting the error "Could not load file or assembly {project dll} or one of its dependencies. The specified module could not be found" when attempting to publish a service fabric application to a cluster. 我收到错误"Could not load file or assembly {project dll} or one of its dependencies. The specified module could not be found"在尝试将服务结构应用程序发布到群集时, "Could not load file or assembly {project dll} or one of its dependencies. The specified module could not be found"

This application publishes to the local cluster without any problem, and runs exactly as expected. 此应用程序发布到本地群集没有任何问题,并完全按预期运行。 However, when I attempt to publish the application to the cluster, it fails, stating that a project dll cannot be found. 但是,当我尝试将应用程序发布到群集时,它会失败,并指出无法找到项目DLL。

The missing dll is in the list of dlls that get packaged with the application, and all of its dependencies are non-local (system.dll, system.net.dll, etc.). 缺少的dll位于与应用程序打包在一起的dll列表中,其所有依赖项都是非本地的(system.dll,system.net.dll等)。 The project is built for x64 to run with Service Fabric. 该项目是为x64构建的,可与Service Fabric一起运行。

This answer worked after restarting the machines after the installation. 安装后重新启动计算机后, 此答案有效。 I also packaged a release build to keep debug dlls out. 我还打包了一个发布版本来保持调试dll。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WCF服务:无法加载文件或程序集或其依赖项之一 - WCF Service: Could not load file or assembly or one of its dependencies 错误0004:无法加载文件或程序集或其依赖项之一 - error 0004: Could not load file or assembly or one of its dependencies 错误原因:无法加载文件或程序集”或其依赖项之一 - What cause to error: Could not load file or assembly '' or one of its dependencies 无法加载文件或程序集或其依赖项之一,错误消息已更改 - Could not load file or assembly or one of its dependencies, error message changing 错误无法加载文件或程序集“AjaxControlToolkit”或其依赖项之一 - ERROR Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies 无法加载文件或程序集或其依赖项之一 - Could not load file or assembly or one of its dependencies 无法加载文件或程序集或其依赖项之一 - could not load file or assembly or one of its dependencies 无法加载文件或程序集或其依赖项之一 - Could not load file or assembly or one of its dependencies 无法加载文件或程序集''或其依赖项之一 - Could not load file or assembly '' or one of its dependencies 无法加载文件或程序集及其依赖项之一 - Could not load file or assembly and one of its dependencies
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM