[英]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.