iis-7.5 - 安装应用程序请求路由时出错

标签 iis-7.5

我正在尝试在 Windows Server 2008R2 下使用 WebPI 4.0 安装 IIS Application Request Routing 2.5。

遗憾的是,IIS 管理器中没有显示任何菜单。

相反,我在事件查看器中收到以下错误:

The Initialize method for module "Microsoft.Web.Management.Arr.ArrModule, Microsoft.Web.Management.Arr.Client, Version=7.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" of type "ApplicationRequestRouting" threw an exception.

Exception:System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Management.WebFarmClient, Version=7.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Web.Management.WebFarmClient, Version=7.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at Microsoft.Web.Management.Arr.ArrModule.Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) at Microsoft.Web.Management.Client.Connection.Initialize(WebManagementInfo webManagementInfo)

事实上,WebFarmClient DLL 位于版本 7.1.2.1 的 GAC 中。 (由 WebPI 自动解析)

我该如何解决这个问题?

最佳答案

好的..这是解决方案。 由于另一个版本的 WebFarmClient DLL 位于 GAC 中,因此我想到了重定向它们:

打开C:\windows\system32\inetsrv\config\administration.config,这是IIS MANAGER的配置文件(不适用于IIS本身).

将此部分添加到其中(在 configsections 之后):

<!-- ... -->
</configSections>
<runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="Microsoft.Web.Management.WebFarmClient"
                              publicKeyToken="31bf3856ad364e35"
                              culture="neutral" />
            <bindingRedirect oldVersion="7.1.2.0"
                             newVersion="7.1.2.1"/>
         </dependentAssembly>
      </assemblyBinding>
</runtime>

我们开始吧!

关于iis-7.5 - 安装应用程序请求路由时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12357612/

相关文章:

c# - MVC3 应用程序无法在虚拟目录中的 IIS7.5 上运行

iis - 如何允许匿名访问 IIS 7.5 上的网站?

wcf - 使用 Windows 身份验证调用 WCF 服务时无法执行 URL

visual-studio - 从多台计算机进行 Web 部署

asp.net - 使用 Web Garden 模拟 Web Farm session 问题?

azure - 是否可以将远程桌面与 Windows Azure 网站连接?

coldfusion - CF10 开发人员在 IIS7.5/WIN7 上 - CFM 文件运行正常 - 但看不到 .GIF

c# - Controller 操作被调用两次并且 IIS 日志不显示

asp.net - 经典 Asp .asp 扩展页面的处理程序映射在 IIS 集成管道模式下给出错误

c# - 403.14 - 在 IIS 中 Controller 名称和 Controller 目录名称相同时禁止访问