2011-05-08 58 views
1

我想使用urlrewriter.net我跟着指示here但是當我運行它,我得到這個錯誤:urlrewriter.net元素「rewrtie」是不允許

The element 'rewrtie' is not allowed. 

這裏是我在添加我的web.config文件:

<httpModules> 
    <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/> 
</httpModules> 

<modules runAllManagedModulesForAllRequests="true"> 
    <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule" /> 
</modules> 

    <configSections> 
    <section name="rewriter" 
      requirePermission="false" 
      type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" /> 

<rewriter> 
    <rewrtie url="~/User/Ahmed/ahmed.aspx" to="~/User/ahmed" /> 
</rewriter> 

使用asp.net 3.5 我謝謝

回答

2

你有多少次閱讀這封郵件,而沒有注意到(與用戶名一樣),其中兩封信是錯誤的?

<rewrite url="~/User/Ahmed/ahmed.aspx" to="~/User/ahmed" /> 
+0

大約有2天沒有睡覺對不起,謝謝(我的用戶名,就是要這種方式不是一個錯誤) – Wahtever 2011-05-08 11:09:26

+0

即使他的用戶名拼寫錯誤。哈哈。癲癇很多? – Marko 2011-05-08 11:12:35