1、配置Module
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="LocalLanguageModule" type="westsoft.srv.filters.LocalModule" />
</httpModules>
2、配置handler
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
<add verb="*" path="wsdat.wsdat" type="westsoft.data.srv.XmlDataHandler,westsoft.data.xml"/>
<add verb="*" path="wsdat.wsjsondat" type="westsoft.data.srv.XmlDataJSHandler,westsoft.data.xml"/>
<add verb="*" path="wsdat.file" type="westsoft.data.srv.XmlDataFileHandler,westsoft.data.xml"/>
</httpHandlers>
3、对于项目部署到服务器上后,由于静态的页面和js不经过asp.net过滤器,所以要手工配置,*.js的handler,强制使其经过顾虑器