当前位置: 首页 > 编程日记 > 正文

URLRewriter在ASP.NET配置文件中的用法

<?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
    <section name="entityConfig" type="NBear.Common.EntityConfigurationSection, NBear.Common"/>
    <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
  </configSections>
  <RewriterConfig>
    <Rules>
      <RewriterRule>
        <LookFor>~/Index/(\d{0,8})\.html</LookFor>
        <SendTo>~/Index/Content.aspx?key=$1</SendTo>
      </RewriterRule>
    </Rules>
  </RewriterConfig>

  <entityConfig>
    <includes>
      <add key="EntityConfig" value="~/EntityConfig.xml"/>
    </includes>
  </entityConfig>
  <appSettings>
    <add key="WebSystem" value="~/Xml/WebSystem.xml"/>
    <add key="Affiche" value="~/Xml/Affiche.xml"/>
    <add key="UpFileSize" value="~/Xml/UpFileSize.xml"/>
    <add key="FCKeditor:UserFilesPath" value="/WebSite/UploadFiles/"/>
    <add key="FCKeditor:BasePath" value="~/fckeditor/"/>
  </appSettings>
  <connectionStrings>
    <add name="sqlCon" connectionString="Data Source=000.0.0.00;Initial Catalog="";User ID="";Password=""" providerName="NBear.Data.SqlServer.SqlDbProvider"/>
  </connectionStrings>
  <system.web>
    <!--
    <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
      <providers>
        <add name="XmlSiteMapProvider" description="" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="Web.sitemap"  securityTrimmingEnabled="true"/>
      </providers>
    </siteMap>
    -->
    <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      </controls>
    </pages>
    <!--
          Set compilation debug="true" to insert debugging
          symbols into the compiled page. Because this
          affects performance, set this value to true only
          during development.
    -->
    <compilation debug="true">
      <assemblies>
        <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
    </compilation>
    <httpHandlers>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
    </httpHandlers>
    <!--<httpModules>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </httpModules>-->
    <httpModules>
      <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter"/>
    </httpModules>

  </system.web>
  <system.web.extensions>
    <scripting>
      <webServices>
        <!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
        <!--
      <jsonSerialization maxJsonLength="500">
        <converters>
          <add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
        </converters>
      </jsonSerialization>
      -->
        <!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
        <!--
        <authenticationService enabled="true" requireSSL = "true|false"/>
      -->
        <!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
           and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
           writeAccessProperties attributes. -->
        <!--
      <profileService enabled="true"
                      readAccessProperties="propertyname1,propertyname2"
                      writeAccessProperties="propertyname1,propertyname2" />
      -->
      </webServices>
      <!--
      <scriptResourceHandler enableCompression="true" enableCaching="true" />
      -->
    </scripting>
  </system.web.extensions>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated"/>
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </handlers>
  </system.webServer>
</configuration>

转载于:https://www.cnblogs.com/queenwh0z/archive/2009/12/12/1622575.html

相关文章:

Travis CI : 最小的分布式系统(二)

大约1年之前&#xff0c;我们发现当时的架构有些不合理了。尤其是Hub&#xff0c;它上面承担了太多的任务。Hub要接收新的处理请求&#xff0c;处理并推动构建日志&#xff0c;它要同步用户信息到Github&#xff0c;它要通知用户构建是否成功。它跟一大群外部API打交道&#xf…

百度开设「黄埔学院」,革新者来

1 月 19 日&#xff0c;百度宣布成立「黄埔学院」&#xff0c;开展深度学习架构师培养计划。并借鉴了黄埔军校大门对联的横批「革命者来」&#xff0c;将口号设置为「革新者来」。 首先&#xff0c;为什么叫「黄埔学院」&#xff1f; 2012 年初&#xff0c;百度开始进行深度学…

Linux-find命令应用举例-按时间筛选和删除文件

find参数说明&#xff1a; find有很多参数是以动作首字母时间的方式用于按访问、改变、更新时间来筛选文件。 动作表达&#xff1a; a(last accessed) 最近一次访问时间 c(last changed) 最近一次改变时间 m(last modified) 最近一次修改时间注意此上的c和m的区别&#xff0c;…

2007年11月网络工程师考试试题

● 若某计算机系统由两个部件串联构成&#xff0c;其中一个部件的失效率为710&#xff0d;6/小时。若不考虑其他因素的影响&#xff0c;并要求计算机系统的平均故障间隔时间为105小时&#xff0c;则另一个部件的失效率应为 &#xff08;1&#xff09; /小时。 &#xff08;1&am…

Travis CI : 最小的分布式系统(三)

日志的作用有两个&#xff1a;当构建日志的数据块通过消息队列进来时&#xff0c;更新数据库对应行&#xff0c;然后推送它到Pusher用于实时的用户界面更新。 日志块以流的形式在同一个时间从不同的进程中进来&#xff0c;然后被一个进程处理。这个进程每秒最高可处理100个消息…

windows 上rsync客户端使用方法

阅读目录 1.1 获取 windows上实现rsync的软件&#xff08;cwRsync&#xff09;1.2 cwrsync的使用方法1.3 cwrsync的使用回到顶部1.1 获取 windows上实现rsync的软件&#xff08;cwRsync&#xff09; cwRsync是Windows 客户端GUI的一个包含Rsync的包装。您可以使用cwRsync快速远…

机器学习开源项目Top10

整理 | Jane 出品 | AI科技大本营 【导语】又到了我们固定给大家推荐开源项目的时间。本期将为大家推荐 10 个机器学习开源项目&#xff0c;统计了过去一个月中 250 个机器学习开源项目&#xff0c;并从中选取了本期的 Top10。平均 1483 Stars。不知道是不是有你喜欢的欢迎大…

大规模服务设计部署经验谈

本文中提出的最佳实践&#xff0c;来自于作者多年大规模服务设计和部署的经验&#xff0c;为设计、开发对运营友好的服务提供了一系列良好的解决方案。■ 文&#xff0f;James Hamilton 译&#xff0f;赖翥翔1 引言 本文就设计和开发运营友好的服务的话题进行总结…

修改mysql数据库默认编码为utf8

查看当前字符编码&#xff1a; mysql < show variables like character%;为了解决中文乱码问题&#xff0c;修改mysql默认数据库编码为utf8&#xff0c;修改/etc/my.cnf [client]default-character-setutf8[mysql]default-character-setutf8[mysqld]character-set-serverutf…

CSDN创始人蒋涛:AI定义的开发者时代

1月18日&#xff0c;由中国软件行业协会主办的2019中国软件产业年会&#xff0c;在国家会议中心举行。CSDN创始人&董事长蒋涛&#xff0c;在大会上发表了题为《AI定义的开发者时代》的主题演讲。 以下为演讲实录&#xff1a; 我们在PC互联网时代就建立了中国软件开发者社区…

numpy.ndarray的赋值操作

matzeros((3,4)) #生成一个3行4列全部元素为0的矩阵mat[1,:]111 #从第1行第0列开始&#xff0c;一直到最后一列&#xff0c;赋值为1&#xff0c;效果与mat[1,0:3]相同&#xff0c;前置0可以省略&#xff0c;最后的列数可以省略输出&#xff1a;[[ 0. 0. 0. 0.][ 111. 111. 111.…

travis-ci如何配置android

travis-ci如何配置android travis-ci 关于android部分&#xff1a;http://docs.travis-ci.com/user/languages/android/ language: android android:components:- build-tools-19.1.0 # BuildTools version- android-19 # SDK version- sy…

你的微笑,拂过我的心海

??初冬的午后&#xff0c;阳光&#xff0c;懒懒地伸展着腰肢,企业形象宣传片 &#xff0c;偶然从窗帘漏进几缕稀少的斜影。南方的冬天总是姗姗来迟&#xff0c;让人认为&#xff0c;那只不过是秋天残存的脚步&#xff0c;还没来得及捉住&#xff0c;它却已从你的眉间静静地溜…

重读Youtube深度学习推荐系统论文,字字珠玑,惊为神文

作者简介&#xff0c;王喆&#xff0c;硅谷高级机器学习工程师。 本文转载自知乎专栏 https://zhuanlan.zhihu.com/p/52169807 这里是王喆的机器学习笔记&#xff0c;每隔一到两周我会站在算法工程师的角度讲解一些计算广告、推荐系统相关的文章。选择文章必须满足一下三个条件…

Struts的select两种遍历方法

转载于:https://blog.51cto.com/9695005/2050390

nginx http 服务器搭建

下载nginx源码&#xff1a;http://nginx.org/en/download.html 安装&#xff1a; wget http://nginx.org/download/nginx-1.9.3.tar.gz cd nginx-1.9.3 ./configure --prefix/usr/local/nginx发现一个问题&#xff1a; checking for PCRE library ... not found checking for P…

加速电子化报销费控服务,易快报完成1500万美元B轮融资

2019年1月21日&#xff0c;报销费控领头羊品牌——易快报对外宣布完成1500万美元B轮系列融资&#xff0c;本轮融资由美元基金曼图资本领投&#xff0c;DCM、明势、银杏谷等投资机构跟投&#xff0c;冲盈资本为本轮独家财务顾问。国内报销费控SaaS行业是个潜力巨大的增量市场&am…

[转]C# 2.0新特性与C# 3.5新特性

C# 2.0新特性与C# 3.5新特性 一、C# 2.0 新特性&#xff1a; 1、泛型List<MyObject> obj_listnew List();obj_list.Add(new MyObject()); 2、部分类(partial)namespace xxx{public partial class Class1{private string _s1;public string S1{get { return _s1; }set { _…

你需要了解的load和initialize

NSObject类有两种初始化方式load和initialize load (void)load; 复制代码对于加入运行期系统的类及分类&#xff0c;必定会调用此方法&#xff0c;且仅调用一次。 iOS会在应用程序启动的时候调用load方法&#xff0c;在main函数之前调用 执行子类的load方法前&#xff0c;会…

iOS11、iPhone X、Xcode9 适配指南

2017.09.23 不断完善中。。。 2017.10.02 新增 iPhone X 适配官方中文文档 更新iOS11后&#xff0c;发现有些地方需要做适配&#xff0c;整理后按照优先级分为以下三类&#xff1a; 单纯升级iOS11后造成的变化&#xff1b;Xcode9 打包后造成的变化&#xff1b;iPhoneX的适配一、…

Grape和Sinatra结合使用

Grape && Sinatra Grape(https://github.com/intridea/grape) is a REST-like API micro-framework for Ruby Sinatra(http://www.sinatrarb.com/intro.html) is a DSL for quickly creating web applications in Ruby 可见&#xff0c;Grape适合构建纯Api系统&#xf…

公告三大“罪状”,无人驾驶公司Roadstar联合创始人被罢免

&#xff08;从左至右依次是为周光、佟显乔、衡量&#xff09; 整理 | Jane 出品 | AI科技大本营 1 月 21 日&#xff0c;因技术造假等违规行为&#xff0c;国内自动驾驶创业公司 Roadstar &#xff08;深圳星行科技有限公司&#xff09;官方宣布&#xff0c;罢免联合创始人周…

大雁悲歌,月哭泣

??时间&#xff0c;毫无感情的把这段故事剪成了碎片……??――题记????一??眺望天边那抹残红&#xff0c;心瞬间间抖落成一滴血。??无法愈合的伤口&#xff0c;夜夜繁衍着孤寂。爱,颈椎痛 &#xff0c;这个烂熟于胸的字&#xff0c;有时真是扎心般刺眼&#xff0c;…

写高质量的代码,永不言晚!

作者 | Nitesh sharma 译者 | 弯月责编 | 郭芮出转载自 CSDN&#xff08;ID&#xff1a;CSDNnews&#xff09; 以下为译文&#xff1a; 在如今这个时代&#xff0c;每个人都在努力提升资源能力。在Web应用程序方面&#xff0c;我们有Spring、Play和Struts等框架&#xff0c;这…

ios searchBar 的代理方法 集合

下面是搜索框控件的一些代理方法&#xff1a; - (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar;将要开始编辑时的回调&#xff0c;返回为NO&#xff0c;则不能编辑- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar;已经开始编辑时的回调- (BOOL)…

双绞线接法详解

一直以来很多人&#xff08;包括作者&#xff09;都认为10 base-t 10m网络使用了网线中8条信号线之4条&#xff0c;而100 base-t 100m则使用了全部8条信号线&#xff08;要不怎么那么快呢&#xff1f;&#xff09;。可是作者前不久在使用一条按所谓10m直连接法&#xff08;1与3…

step by step YAML 复用

yaml文件适合用来描述软件测试过程的步骤。当不同类型的CI过程集中在一个yaml文件时&#xff0c;首先碰到的一个问题是&#xff1a;大量重复的步骤如何进行复用&#xff1f; 举个例子&#xff1a; stage1:run_it:exec:- A- B- C- D1stage2:run_it:exec:- A- B- C- D2显然&#…

在winform中从外部拖动节点到树形结构(treeview和listview相互拖动)(一)

最近一个项目要用到从listview向treeview拖动item&#xff0c;达到从外部拖动图标成为树形结构的一部分&#xff0c;通过查阅资料总结了一些实现方式&#xff0c;分享给大家。这是winform中的例子。 在进行拖放操作之前&#xff0c;必须要对进行拖放操作的组件的"AllowDro…

node 模块化 require expores,简易实现原理。

为了更好的理解 Node.js 的 require 实现机制&#xff0c;我实现了一个简易的版本。我们node index.js的时候就是require(./index.js)&#xff0c;话不多说我们直接上代码&#xff1a; 目录index.jsa.jsb.jsc.jsindex.js use strictfunction $require(filepath) {const fs req…

100+Python编程题给你练~(附答案)

整理 | Just 出品 | Python大本营 春节马上就要到了&#xff0c;怎么能让自己在假期里不掉队&#xff1f;今天&#xff0c;营长给大家准备一个项目&#xff1a; 100 编程练习&#xff0c;这些题如果能坚持每天至少完成一道&#xff0c;一定可以帮大家轻松 get Python 的编程技…