码迷,mamicode.com
首页 > 编程语言 > 详细

[asp.net webfrom+spring.net Error] Resource handler for the 'web' protocol is not defined.

时间:2015-06-01 16:14:45      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:

错误提示:

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

[asp.net webfrom+spring.net Error] Resource handler for the 'web' protocol is not defined.

标签:

原文地址:http://www.cnblogs.com/webJingGao/p/4543985.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!