[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

你可能感兴趣的:(resource)