mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
143 lines
7.4 KiB
XML
143 lines
7.4 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">
|
||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor" requirePermission="false" />
|
||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor" requirePermission="false" />
|
||
</sectionGroup>
|
||
</configSections>
|
||
|
||
<appSettings>
|
||
<!--
|
||
This is a workaround. There’s a known issue that causes Forms Authentication to always redirect unauthenticated users
|
||
to ~/Account/Login, ignoring the forms authentication setting used in Web.config.
|
||
-->
|
||
<add key="autoFormsAuthentication" value="false" />
|
||
</appSettings>
|
||
|
||
<system.diagnostics configSource="Config\Diagnostics.config"/>
|
||
|
||
<system.web.webPages.razor>
|
||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.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.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>
|
||
<system.web>
|
||
<machineKey validationKey="013B82F217ABB7EAB1F699E4E5B4D290030644D435994692354DAE82B06568B058BFE3C57BF199A41FFDBC84F3BC74D9C5BD96D1265F36A22D58347B591AC8DD" decryptionKey="04797035C490263D73ED991C84C5DFCD0D0206AD4F12BC3638A38FBEABEBB8C7" validation="SHA1" decryption="AES" />
|
||
|
||
<httpRuntime requestValidationMode="2.0" />
|
||
<!--
|
||
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.0">
|
||
<buildProviders>
|
||
<add extension=".csproj" type="Orchard.Environment.Extensions.Compilers.CSharpExtensionBuildProviderShim"/>
|
||
</buildProviders>
|
||
<assemblies>
|
||
<add assembly="System.Web.Mvc, Version=3.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"/>
|
||
</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>
|
||
|
||
<roleManager enabled="false">
|
||
<providers>
|
||
<clear/>
|
||
<add name="OrchardRoleProvider" type="Orchard.Security.Providers.OrchardRoleProvider, Orchard.Framework"/>
|
||
<!--<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>-->
|
||
<!--<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>-->
|
||
</providers>
|
||
</roleManager>
|
||
<!--
|
||
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="Off" />
|
||
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
|
||
<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>
|
||
<httpHandlers>
|
||
<add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||
|
||
<!-- Block access to module and theme definition files -->
|
||
<add verb="*" path="module.txt" validate="false" type="System.Web.HttpNotFoundHandler" />
|
||
<add verb="*" path="theme.txt" validate="false" type="System.Web.HttpNotFoundHandler" />
|
||
</httpHandlers>
|
||
</system.web>
|
||
<!--
|
||
The system.webServer section is required for running ASP.NET AJAX under Internet
|
||
Information Services 7.0. It is not necessary for previous version of IIS.
|
||
-->
|
||
<system.webServer>
|
||
<validation validateIntegratedModeConfiguration="false"/>
|
||
<modules runAllManagedModulesForAllRequests="true">
|
||
</modules>
|
||
<handlers>
|
||
<remove name="MvcHttpHandler"/>
|
||
<remove name="UrlRoutingHandler"/>
|
||
<add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
|
||
|
||
<!-- Block access to module and theme definition files -->
|
||
<add name="moduleHttpNotFoundHandler" preCondition="integratedMode" verb="*" path="module.txt" type="System.Web.HttpNotFoundHandler" />
|
||
<add name="themeHttpNotFoundHandler" preCondition="integratedMode" verb="*" path="theme.txt" type="System.Web.HttpNotFoundHandler" />
|
||
</handlers>
|
||
</system.webServer>
|
||
<runtime>
|
||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||
<probing privatePath="App_Data/Dependencies"/>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
|
||
<bindingRedirect oldVersion="2.0.0.0" newVersion="3.0.0.0" />
|
||
</dependentAssembly>
|
||
</assemblyBinding>
|
||
</runtime>
|
||
</configuration>
|