2011-02-25 71 views
2

我收到System.Configuration.ConfigurationErrorsException與消息Could not load type 'XxxSiteMapProvider' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.未能加載從組件類型「MapProvider」

我試圖單元測試單獨的類在同一項目作爲定製XxxSiteMapProvider類。該錯誤消息指出了App.config的合適點來提取自定義SiteMapProvider,並且我在解決方案中進行了搜索,並且類名不會在任何地方複製。 (我從搜索中看到,衝突的類名可能會導致此錯誤。)

有關如何調試的任何建議?

回答

2

嘗試在以下模式下爲config中的SiteMap提供程序指定完全限定的類型名稱。

<namespace>.<classname>, <fully qualified assembly name including public key> 
+0

是的,這是我們最終如何解決問題 – 2011-03-21 20:00:33

相關問題