mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +08:00
190 lines
12 KiB
XML
190 lines
12 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
Note: As an alternative to hand editing this file you can use the
|
|
web admin tool to configure settings for your application. Use
|
|
the Website->Asp.Net Configuration option in Visual Studio.
|
|
A full list of settings and comments can be found in
|
|
machine.config.comments usually located in
|
|
\Windows\Microsoft.Net\Framework\v2.x\Config
|
|
-->
|
|
<configuration>
|
|
<configSections>
|
|
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
|
<remove name="host"/>
|
|
<remove name="pages"/>
|
|
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false"/>
|
|
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false"/>
|
|
</sectionGroup>
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false"/>
|
|
</configSections>
|
|
<appSettings>
|
|
<add key="webpages:Enabled" value="false"/>
|
|
<add key="log4net.Config" value="Config\log4net.config"/>
|
|
</appSettings>
|
|
<system.web.webPages.razor>
|
|
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
|
<pages pageBaseType="Orchard.Mvc.ViewEngines.Razor.WebViewPage">
|
|
<namespaces>
|
|
<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"/>
|
|
<add namespace="System.Linq"/>
|
|
<add namespace="System.Collections.Generic"/>
|
|
<add namespace="Orchard.Mvc.Html"/>
|
|
</namespaces>
|
|
</pages>
|
|
</system.web.webPages.razor>
|
|
<!--
|
|
Set default transaction timeout to 30 minutes so that interactive debugging
|
|
is easier (default timeout is less than one minute)
|
|
-->
|
|
<system.transactions>
|
|
<defaultSettings timeout="00:30:00"/>
|
|
</system.transactions>
|
|
<!--
|
|
For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.
|
|
|
|
The following attributes is set on the <httpRuntime> tag: targetFramework="4.5"
|
|
for more info: http://blogs.msdn.com/b/webdev/archive/2012/11/19/all-about-httpruntime-targetframework.aspx
|
|
|
|
-->
|
|
<system.web>
|
|
<!-- Accept file uploads up to 64 Mb -->
|
|
<httpRuntime targetFramework="4.5" requestValidationMode="2.0" maxRequestLength="65536"/>
|
|
<!--
|
|
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" targetFramework="4.5" batch="true" numRecompilesBeforeAppRestart="250" optimizeCompilations="true">
|
|
<buildProviders>
|
|
<add extension=".csproj" type="Orchard.Environment.Extensions.Compilers.CSharpExtensionBuildProviderShim"/>
|
|
</buildProviders>
|
|
<assemblies>
|
|
<add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
|
|
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
|
|
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
|
|
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
|
<remove assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
|
|
<remove assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
|
|
<remove assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
|
|
<remove assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
|
|
<remove assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
|
|
<remove assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
|
|
<remove assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
|
|
<remove assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
|
|
<remove assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
|
|
<remove assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
|
|
<remove assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
|
<remove assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
|
<remove assembly="System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
|
<remove assembly="System.ServiceModel.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
|
<remove assembly="System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
|
<remove assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
|
<remove assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
|
|
<remove assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
|
</assemblies>
|
|
</compilation>
|
|
<!--
|
|
The <authentication> section enables configuration
|
|
of the security authentication mode used by
|
|
ASP.NET to identify an incoming user.
|
|
-->
|
|
<authentication mode="Forms">
|
|
<forms loginUrl="~/Users/Account/AccessDenied" timeout="2880"/>
|
|
</authentication>
|
|
<!--
|
|
The <customErrors> section enables configuration
|
|
of what to do if/when an unhandled error occurs
|
|
during the execution of a request. Specifically,
|
|
it enables developers to configure html error pages
|
|
to be displayed in place of a error stack trace.
|
|
-->
|
|
<customErrors mode="RemoteOnly"/>
|
|
<pages>
|
|
<namespaces>
|
|
<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.Linq"/>
|
|
<add namespace="System.Collections.Generic"/>
|
|
<add namespace="Orchard.Mvc.Html"/>
|
|
</namespaces>
|
|
</pages>
|
|
</system.web>
|
|
|
|
<system.webServer>
|
|
<validation validateIntegratedModeConfiguration="false"/>
|
|
<modules runAllManagedModulesForAllRequests="false">
|
|
<remove name="WarmupHttpModule"/>
|
|
<add name="WarmupHttpModule" type="Orchard.WarmupStarter.WarmupHttpModule, Orchard.WarmupStarter, Version=1.7, Culture=neutral"/>
|
|
</modules>
|
|
<handlers accessPolicy="Script">
|
|
<!-- clear all handlers, prevents executing code file extensions, prevents returning any file contents -->
|
|
<clear/>
|
|
<!-- Return 404 for all requests via managed handler. The url routing handler will substitute the mvc request handler when routes match. -->
|
|
<add name="NotFound" path="*" verb="*" type="System.Web.HttpNotFoundHandler" preCondition="integratedMode" requireAccess="Script"/>
|
|
<!-- WebApi -->
|
|
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit"/>
|
|
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit"/>
|
|
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
|
|
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0"/>
|
|
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0"/>
|
|
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
|
|
</handlers>
|
|
<!-- Prevent IIS 7.0 from returning a custom 404/500 error page of its own -->
|
|
<httpErrors existingResponse="PassThrough"/>
|
|
<security>
|
|
<requestFiltering>
|
|
<!-- Accept file uploads up to 64 Mb -->
|
|
<requestLimits maxAllowedContentLength="67108864"/>
|
|
</requestFiltering>
|
|
</security>
|
|
</system.webServer>
|
|
<runtime>
|
|
<gcServer enabled="true"/>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<probing privatePath="App_Data/Dependencies"/>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.WebPages.Deployment" publicKeyToken="31bf3856ad364e35"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-3.3.1.4000" newVersion="3.3.1.4000"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Autofac" publicKeyToken="17863af14b0044da"/>
|
|
<bindingRedirect oldVersion="2.2.0.0-2.6.3.862" newVersion="3.0.0.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="4.5.0.0"/>
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
</configuration> |