web.config add handlers and httpmodule to System.Web section.
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了web.config add handlers and httpmodule to System.Web section.相关的知识,希望对你有一定的参考价值。
<?xml version="1.0" encoding="utf-8"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=152368 --> <configuration> <appSettings> <add key="webpages:Version" value="2.0.0.0" /> <add key="PreserveLoginUrl" value="true" /> <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusivejavascriptEnabled" value="true" /> </appSettings> <system.web> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> </assemblies> </compilation> <!--IIS6 httpModules--> <httpModules> <add name="HttpModuleService" type="as.Core.Module.HttpModuleService, as.Core.Module" /> </httpModules> <httpHandlers> <add verb="*" path="*.axd" type="as.Core.Upload.ThumbnailHandler, as.Core.Upload" /> </httpHandlers> <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="2880" /> </authentication> <pages> <namespaces> <add namespace="System.Web.Helpers" /> <add namespace="System.Web.Mvc" /> <add namespace="System.Web.Mvc.Ajax" /> <add namespace="System.Web.Mvc.html" /> <add namespace="System.Web.Routing" /> <add namespace="System.Web.WebPages" /> </namespaces> </pages> <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> <httpRuntime requestValidationMode="2.0" /> </system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <!--IIS7 httpModules--> <!--<modules runAllManagedModulesForAllRequests="true"> <add name="HttpModuleService" type="as.Core.Module.HttpModuleService, as.Core.Module"/> </modules>--> </system.webServer> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration>
以上是关于web.config add handlers and httpmodule to System.Web section.的主要内容,如果未能解决你的问题,请参考以下文章
有没有办法使用转换将新部分“插入”到 Web.Config 中?