zoukankan      html  css  js  c++  java
  • [asp.net webfrom+spring.net Error] Resource handler for the 'web' protocol is not defined.

    错误提示:

    Resource handler for the 'web' protocol is not defined.

    解决方案:

    修改web.config如下:

    <system.web>
        <httpHandlers>
            <add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/>
        </httpHandlers>
        <httpModules>
            <add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web"/>
        </httpModules>
        ...
    </system.web>

    如果是IIS7+ Win Server 2008,还得修改如下配置:

    <system.webServer>
      <validation validateIntegratedModeConfiguration="false"/>
      <modules>
        <add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web"/>
      </modules>
      <handlers>
        <add name="SpringPageHandler" verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/>
        <add name="SpringContextMonitor" verb="*" path="ContextMonitor.ashx" type="Spring.Web.Support.ContextMonitor, Spring.Web"/>
      </handlers>
    </system.webServer>

    http://www.springframework.net/doc-latest/reference/html/web.html

  • 相关阅读:
    防止头文件的重复包含问题
    git常用命令
    redis
    linux常用操作
    数据库安装
    mysql修改表结构
    mysql 忘记root密码及授权访问
    mysql连表查询
    mysql 存取ip方法
    php批量修改表结构
  • 原文地址:https://www.cnblogs.com/webJingGao/p/4543985.html
Copyright © 2011-2022 走看看