2012-09-10 47 views
3

我正嘗試在Windows Server 2008R2下安裝IIS應用程序請求路由2.5 - 使用WebPI 4.0。安裝應用程序請求路由時出錯

不幸的是沒有菜單顯示在IIS管理器中。

相反,我得到以下錯誤在事件查看器:

的初始化方法模塊 「Microsoft.Web.Management.Arr.ArrModule, Microsoft.Web.Management.Arr.Client,版本= 7.2.4.0,Culture = neutral, PublicKeyToken = 31bf3856ad364e35「類型的」ApplicationRequestRouting「 引發異常。

異常:System.IO.FileNotFoundException:未能加載文件或 組件 'Microsoft.Web.Management.WebFarmClient,版本= 7.1.2.0, 文化=中性公鑰= 31bf3856ad364e35' 或它 的一個依賴。該系統找不到指定的文件。文件名: 'Microsoft.Web.Management.WebFarmClient,版本= 7.1.2.0, 文化=中性公鑰= 31bf3856ad364e35' 在 Microsoft.Web.Management.Arr.ArrModule.Initialize(IServiceProvider的 的ServiceProvider,ModuleInfo moduleInfo)在 Microsoft.Web.Management.Client.Connection.Initialize(webManagementInfo webManagementInfo)

事實上,WebFarmClient DLL是在GAC在7.1.2.1版本。 (由WebPI自動解析)

我該如何解決這個問題?

回答

2

行..這是解決方案。 由於WebFarmClient DLL的另一個版本是在GAC我有想法,把它們放在:

打開C:\windows\system32\inetsrv\config\administration.config,這是IIS管理器配置文件(不是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> 

在這裏,我們走!

相關問題