urlrewriter.net不允许元素'rewrtie'

时间:2011-05-08 11:03:31

标签: asp.net urlrewriter.net

我正在尝试使用urlrewriter.net并且我按照说明here但是当我运行它时我收到此错误:

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 有什么问题,谢谢

1 个答案:

答案 0 :(得分:2)

您有多少次阅读过该邮件,而没有注意到(与您的用户名一样)两个字母错误的方式?

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