Web.Config中的HttpModules内部服务器错误 [英] Web.Config httpModules Internal Server Error

查看:108
本文介绍了Web.Config中的HttpModules内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新了我的的web.config 来支持URL重写,但是当我用它我的Web服务器上显示了错误:

I updated my web.config to support URL Rewriting but when I use it on my web server it shows the error:

内部服务器错误服务器
  遇到一个内部错误或
  配置错误,无法
  完成您的请求。请联系
  服务器管理员通知
  时发生的错误和
  任何你可能会做那可就
  造成的错误。

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

这个错误的详细信息可
  在服务器错误日志。

More information about this error may be available in the server error log.

我的web.config如下:

My web.config is as follows:

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

  <rewriter>
    <rewrite url="~/subjects/(.+).aspx" to="~/subject.aspx?ebook-subject=$1"/>
    <rewrite url="~/books/(.+).aspx" to="~/book.aspx?ebook-name=$1"/>
    <rewrite url="~/booklinks/(.+).aspx" to="~/booklink.aspx"/>
    <rewrite url="~/subcategories/(.+).aspx" to="~/subcategory.aspx?ebook-subcategory=$1"/>
    <rewrite url="~/categories/(.+).aspx" to="~/category.aspx?ebook-category=$1"/>
    <rewrite url="~/explainsubjects/(.+).aspx" to="~/explainsubject.aspx?ebook-subject=$1"/>

    <rewrite url="~/search/search.aspx" to="~/search.aspx"/>
    <rewrite url="~/search/searchresults.aspx" to="~/searchresults.aspx"/>
  </rewriter>
  <system.web>
    <httpModules>
      <add name="UrlRewriter" 
           type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
    </httpModules>
    <compilation debug="true"/>
    <authentication mode="Windows"/>
    <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
    </customErrors>
    <pages/>
  </system.web>
</configuration>

我在做什么错了?

What am I doing wrong?

推荐答案

<一个href=\"http://stackoverflow.com/questions/573325/500-internal-server-error-when-adding-httpmodule-in-my-website\">This帖子解决我的问题。

这篇关于Web.Config中的HttpModules内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆