c# - 无法加载文件或程序集。在 IIS 8.0 上运行的 32 位程序集

标签 c# .net wcf iis iis-8

我正在尝试将当前在 IIS 7 中运行的 WCF 服务部署到 IIS 8。要在 IIS 7 中运行 32 位 DLL,我必须在应用程序池中选中“启用 32 位应用程序”。当我在 IIS 8 中执行此操作时,它不起作用。

准确的错误信息是

Could not load file or assembly 'Progress.ssl.DLL' or one of its dependencies. The specified module could not be found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Progress.ssl.DLL' or one of its dependencies. The specified module could not be found.

是否还有其他步骤可以使 32 位 DLL 在 IIS 8 中运行?

最佳答案

嘿,我为此苦苦挣扎了几个小时,但这是对我有帮助的解决方案:

转到 IIS 管理器:

  1. 选择应用池
  2. 然后选择您正在使用的池
  3. 进入高级设置(在右侧)
  4. 启用 32 位 应用程序的标志 false 更改为 true

希望对你有帮助

关于c# - 无法加载文件或程序集。在 IIS 8.0 上运行的 32 位程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18834927/

相关文章:

c# - 在 WPF 应用程序中将数据从 C# 发送到 Javascript

c# - 连接超时已过期。登录后阶段超时时间已过

.net - 如何在执行文件时在 Powershell 中忽略暂停 - 按任意键

c# - 如何实现 ICollection.CopyTo 方法?

c# - 具有多个端点的 WCF 双工服务

c# - 使用 `new PrincipalContext(ContextType.Domain, "domain.name.com")` 而无需提供用户名和密码

c# - 如何隐藏控制台应用程序的黑屏?

c# - 如何在 C# 中将文本与列表框中的 ITEMS 进行比较

WCF web 服务 : HTTP/1. 1 400 发送大输入时的错误请求

c# - 有没有办法在第三方类型上创建 WCF DataContract?