PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Samples/Blog/Bifrost.Samples.Blog.Mvc/Features/Web.config

#
Unknown | 60 lines | 53 code | 7 blank | 0 comment | 0 complexity | ff80fc9d213a2e4b4b70a5375bc40718 MD5 | raw file
 1<?xml version="1.0"?>
 2
 3<configuration>
 4	<configSections>
 5		<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
 6			<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
 7			<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
 8		</sectionGroup>
 9	</configSections>
10
11	<system.web.webPages.razor>
12		<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
13		<pages pageBaseType="System.Web.Mvc.WebViewPage">
14			<namespaces>
15				<add namespace="System.Web.Mvc" />
16				<add namespace="System.Web.Mvc.Ajax" />
17				<add namespace="System.Web.Mvc.Html" />
18				<add namespace="System.Web.Routing" />
19			</namespaces>
20		</pages>
21	</system.web.webPages.razor>
22
23	<appSettings>
24		<add key="webpages:Enabled" value="false" />
25    <add key="ClientValidationEnabled" value="true"/>
26    <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
27	</appSettings>
28
29	<system.web>
30		<httpHandlers>
31			<add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
32		</httpHandlers>
33
34		<!--
35        Enabling request validation in view pages would cause validation to occur
36        after the input has already been processed by the controller. By default
37        MVC performs request validation before a controller processes the input.
38        To change this behavior apply the ValidateInputAttribute to a
39        controller or action.
40    -->
41		<pages
42        validateRequest="false"
43        pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
44        pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
45        userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
46			<controls>
47				<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
48			</controls>
49		</pages>
50	</system.web>
51
52	<system.webServer>
53		<validation validateIntegratedModeConfiguration="false" />
54
55		<handlers>
56			<remove name="BlockViewHandler"/>
57			<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
58		</handlers>
59	</system.webServer>
60</configuration>