簡體   English   中英

IIS.7用http模塊完成的URL重寫錯誤

[英]IIS.7 Error on url rewrite done with http Module

我有一個ASP.NET Web應用程序,該應用程序通過Http模塊實現URL重寫。 每個重寫規則都是從數據庫表中加載的。

添加新規則后,出現以下錯誤:

 Value does not fall within the expected range.
 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.ArgumentException: Value does not fall within the expected range.

我在應用程序日志中找不到任何內容。

在這種情況下,經過長時間的調查,我發現了角色

\n

重定向網址名稱之后。

當http模塊將重定向發送到IIS時,一切正常,但是在請求處理期間IIS本身收到了以上錯誤。

我認為這是一個非常奇怪的錯誤,我花了很多時間進行檢測,因此我想分享解決方案(當然,這全都是我的錯!)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM