[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

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

时间: 2024-08-29 15:13:42

[asp.net webfrom+spring.net Error] Resource handler for the 'web' protocol is not defined.的相关文章

Can&#39;t get WebApplicationContext object from ContextRegistry.GetContext(): Resource handler for the &#39;web&#39; protocol is not defined

I'm stucked in configuring my web.config file under a web forms project in order to get an instance of WebApplicationContext (at Global.asax) and then being able to use scope="application | session | request" <sectionGroup name="spring&q

Spring Boot - Error creating bean with name &#39;dataSource&#39; defined in class path resource

看起来像最初的问题是与自动配置. 如果你不需要数据源,只需从自动配置过程中删除它: @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class}) Spring Boot - Error creating bean with name 'dataSource' defined in class path resource 原文地址:https://www.cnblogs.com/valu/p/8371296.html

ASP.NET MVC+Spring.net+Nhibernate

第八步:Asp.NET MVC引入的DLL文件 (1) 通过上面的准备工作,可以说是我们的大部分基层代码的书写任务都已经完成了,下面才是本项目值得学习的地方,我们全部在MVC新建的项目中书写代码,因为这里用到了Spring.net,Nhibernate,MVC,easyUI等,所以非常值得我们去研究,当然我的写法可能也有问题,希望我们可以交流,这样我们可以共同进步. (2) 因为用到了Nhibernate,Spring.net,所以我将引入的DLL文件的截图先放在这里吧,当然,我的项目中有dll

[转]ASP.NET MVC Spring.NET NHibernate 整合

请注明转载地址:http://www.cnblogs.com/arhat 在整合这三个技术之前,首先得说明一下整合的步骤,俗话说汗要一口一口吃,事要一件一件做.同理这个三个技术也是.那么在整合之前,需要对 ASP.NET,Spring.NET,NHibernate有所了解,最好是有一些经验,因为平白无故的就把3个技术融合到一起,会闹些小别扭,其实就像配置化学药品一样,如果3中原料有一点出路,那么整个实验也就失败了. 在网上有很多高人都写过类似的文章,可能是鄙人不才,看了很多文章都没有把我的问题解

【Asp.Net WebFrom】分页

Asp.Net WebForm 分页 一. 前言 Asp.Net WebForm 内置的DataPager让人十分蛋疼 本文使用的分页控件是第三方分页控件 AspNetPager,下载地址: 链接: http://pan.baidu.com/s/1eQJ2HR8 密码: aost 相关属性及其效果图: 二.使用第三方分页控件 AspNetPager 第一步:显示未分页前的数据 前端代码: 注意:将ListView控件的EnableViewState="False".说明即使是Enabl

【转载】Spring加载resource时classpath*:与classpath:的区别

免责声明:     本文转自网络文章,转载此文章仅为个人收藏,分享知识,如有侵权,请联系博主进行删除.     原文作者:kyfxbl     原文地址: spring配置中classpath和classpath*的区别   在spring配置文件里,可以用classpath:前缀,来从classpath中加载资源  比如在src下有一个jdbc.properties的文件,可以用如下方法加载: <bean id="propertyConfigurer" class="

spring下应用@Resource, @Autowired 和 @Inject注解进行依赖注入的差

代码: 为了探寻  '@Resource', '@Autowired', 和'@Inject'如何解决依赖注入中的问题,我创建了一个"Party"接口,和它的两个实现类"Person","Organization".这样我就可以在注入Bean的时候不必使用具体类型(指使用接口类型即可).这样做也方便我研究当一个接口有多个实现类与之匹配的时候Spring是如何解决依赖注入的不确定性的. public interface Party {} packa

Flutter - AAPT: error: resource android:attr/dialogCornerRadius not found.

Launching lib\main.dart on Nokia X6 in debug mode... FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugResources'. > Android resource linking failed Output: E:\Flutter Projects\intro_to_flutter\bu

Asp.Net程序报错 - error CS2001: Source file &#39;C:\Windows\TEMP\eulevokb.0.cs&#39; could not be found warning CS2008

一个Asp.Net项目,Excel导入功能出现如下错误:error CS2001: Source file 'C:\Windows\TEMP\eulevokb.0.cs' could not be foundwarning CS2008: No source files specified 本地执行是没有问题的,访问正式服务器就会出现这样的错误,搜索一下,原来是权限的问题. 解决办法:打开C盘,找到C:\Windows\TEMP目录,给temp添加IIS_IUSER的权限就没有问题了! Asp.