Want more features on Pastebin? Sign Up, it's FREE!

View Web.config

By: garfbradaz on Oct 7th, 2012  |  syntax: XML  |  size: 2.85 KB  |  views: 247  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  6.       <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" />
  7.       <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" />
  8.     </sectionGroup>
  9.   </configSections>
  10.  
  11.   <system.web.webPages.razor>
  12.     <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=4.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.Optimization"/>
  19.         <add namespace="System.Web.Routing" />
  20.       </namespaces>
  21.     </pages>
  22.   </system.web.webPages.razor>
  23.  
  24.   <appSettings>
  25.     <add key="webpages:Enabled" value="false" />
  26.   </appSettings>
  27.  
  28.   <system.web>
  29.     <httpHandlers>
  30.       <add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
  31.     </httpHandlers>
  32.  
  33.     <!--
  34.        Enabling request validation in view pages would cause validation to occur
  35.        after the input has already been processed by the controller. By default
  36.        MVC performs request validation before a controller processes the input.
  37.        To change this behavior apply the ValidateInputAttribute to a
  38.        controller or action.
  39.    -->
  40.     <pages
  41.        validateRequest="false"
  42.        pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
  43.        pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
  44.        userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  45.       <controls>
  46.         <add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
  47.       </controls>
  48.     </pages>
  49.   </system.web>
  50.  
  51.   <system.webServer>
  52.     <validation validateIntegratedModeConfiguration="false" />
  53.  
  54.     <handlers>
  55.       <remove name="BlockViewHandler"/>
  56.       <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
  57.     </handlers>
  58.   </system.webServer>
  59. </configuration>
clone this paste RAW Paste Data