2014-02-26 72 views
3

無法加載文件或程序集「UrlRewritingNet.UrlRewriter」或其某個依賴項。該系統找不到指定的文件。asp.net URL重寫錯誤

我們安裝了URL重寫

嘗試了一個網站 上試圖在一個虛擬目錄

同樣的錯誤:/

什麼想法?

描述:執行當前Web請求期間發生未處理的異常。請查看堆棧跟蹤以獲取有關該錯誤的更多信息以及源代碼的位置。

異常詳細信息:System.IO.FileNotFoundException:無法加載文件或程序集「UrlRewritingNet.UrlRewriter」或其某個依賴項。該系統找不到指定的文件。

源錯誤:

在當前web請求的執行過程中生成未處理的異常。關於異常的來源和位置的信息可以使用下面的異常堆棧跟蹤來標識。

程序集加載跟蹤:以下信息可以幫助確定程序集UrlRewritingNet.UrlRewriter無法加載的原因。

警告:裝配綁定日誌記錄已關閉。 要啓用程序集綁定失敗日誌記錄,請將註冊表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog](DWORD)設置爲1. 注意:與程序集綁定失敗日誌記錄相關的性能受損。 要關閉此功能,請刪除註冊表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog]。

堆棧跟蹤:

[FileNotFoundException異常:未能加載文件或程序集 'UrlRewritingNet.UrlRewriter' 或它的一個依賴。該系統找不到指定的文件。] System.RuntimeTypeHandle.GetTypeByName(字符串名稱,布爾throwOnError,布爾IGNORECASE,布爾reflectionOnly,StackCrawlMarkHandle stackMark,IntPtr的pPrivHostBinder,布爾loadTypeFromPartialName,ObjectHandleOnStack型)+0 System.RuntimeTypeHandle.GetTypeByName(字符串布爾值throwOnError,布爾ignoreCase,布爾reflectionOnly,StackCrawlMark +13 System.Web.Compilation.BuildManager。 GetType(String typeName,Boolean throwOnError,Boolean ignoreCase)+124 System.Web.Configuration.ConfigUtil.GetType(String typeName,String propertyName,ConfigurationElement configElement,XmlNode node ,Boolean checkAptcaBit,Boolean ignoreCase)+76

[ConfigurationErrorsException:無法加載文件或程序集'UrlRewritingNet.UrlRewriter'或其某個依賴項。系統找不到指定的文件。] System.Web.Configuration.ConfigUtil.GetType(String typeName,String propertyName,ConfigurationElement configElement,XmlNode node,Boolean checkAptcaBit,Boolean ignoreCase)+12773840 System.Web.Configuration.Common.ModulesEntry .SecureGetType(String typeName,String propertyName,ConfigurationElement configElement)+69 System.Web.Configuration.Common.ModulesEntry ..構造函數(字符串名稱,字符串的typeName,字符串propertyName的,的ConfigurationElement configElement)66 System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList)300 System.Web.HttpApplication.GetModuleCollection(IntPtr的appContext)1262 的System.Web .HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr的appContext,HttpContext的上下文中,MethodInfo的[]處理程序)133 System.Web.HttpApplication.InitSpecial(HttpApplicationState狀態,MethodInfo的[]處理程序,IntPtr的appContext,HttpContext的上下文中)304 System.Web.HttpApplicationFactory。 GetSpecialApplicationInstance(IntPtr appContext,HttpContext上下文)+404 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)+475

[HttpException(0x80004005):無法加載文件或程序集「UrlRewritingNet.UrlRewriter」或其某個依賴項。該系統找不到指定的文件。] System.Web.HttpRuntime.FirstRequestInit(HttpContext的背景下)12966756 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext的背景下)+159 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest WR,HttpContext的上下文)+12806561

版本信息:Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.18408

+0

summea - 你怎麼做呢?在我的web.config我添加了重寫區域... – user3344112

+0

這是一個IIS功能。不是像COM對象這樣的參考功能...這就是爲什麼我對你的參考感到困惑 – user3344112

+0

不知道這是否會有所幫助...我們遇到了一種情況,在升級Windows Server 2012之後,我們的站點停止工作到一個類似的問題(我們甚至沒有使用!)我們應用的修復是卸載'IIS URL重寫模塊2'組件(通過添加/刪除程序)並重新安裝。 –

回答

0

請改變你的子網站的應用程序池設置。 到不同的應用程序。池框架。

0

只需複製UrlRewritingNet.UrlRewriter.dll並粘貼在雙方父母和孩子的bin文件夾..這可能是not present in the child bin folder