Created
June 3, 2012 22:51
-
-
Save skalinets/2865307 to your computer and use it in GitHub Desktop.
razor enabled fubu web.config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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=169433 | |
--> | |
<configuration> | |
<configSections> | |
<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"> | |
<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" /> | |
<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" /> | |
</sectionGroup> | |
</configSections> | |
<system.web> | |
<compilation debug="true" targetFramework="4.0"> | |
<assemblies> | |
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> | |
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> | |
</assemblies> | |
</compilation> | |
<pages validateRequest="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> | |
<namespaces> | |
<add namespace="FubuMVC.Core" /> | |
<add namespace="FubuCore" /> | |
<add namespace="FubuCore.Reflection" /> | |
<add namespace="FubuLocalization" /> | |
<add namespace="FubuMVC.Core.UI" /> | |
<add namespace="FubuMVC.Core.UI.Extensibility" /> | |
<add namespace="HtmlTags" /> | |
<add namespace="HtmlTags.Extended.Attributes" /> | |
<add namespace="StructureMap" /> | |
<add namespace="System.Web.Routing" /> | |
</namespaces>ra | |
</pages> | |
</system.web> | |
<system.web.webPages.razor> | |
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> | |
<pages pageBaseType="FubuMVC.Razor.Rendering.FubuRazorView"> | |
<namespaces> | |
<add namespace="FubuMVC.Razor.Rendering" /> | |
<add namespace="FubuMVC.Core"/> | |
<add namespace="FubuMVC.Core.UI"/> | |
</namespaces> | |
</pages> | |
</system.web.webPages.razor> | |
<system.webServer> | |
<validation validateIntegratedModeConfiguration="false" /> | |
<modules runAllManagedModulesForAllRequests="true"> | |
<!-- To prevent static content from being run thru ASP.NET, we want to set runAllManagedModulesForAllRequests="false" | |
However, UrlRoutingModel will stop working, unless you patch IIS to support extensionless routing (introduced in .NET 4) | |
Download the patch at http://support.microsoft.com/kb/980368 --> | |
<remove name="UrlRoutingModule" /> | |
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" preCondition="managedHandler" /> | |
</modules> | |
<handlers> | |
<add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | |
</handlers> | |
</system.webServer> | |
<location path="Content" allowOverride="true"> | |
<system.web> | |
<authorization> | |
<allow users="*" /> | |
</authorization> | |
</system.web> | |
</location> | |
<location path="_content" allowOverride="true"> | |
<system.web> | |
<authorization> | |
<allow users="*" /> | |
</authorization> | |
</system.web> | |
</location> | |
<location path="fubu-content"> | |
<system.web> | |
<authorization> | |
<deny users="*" /> | |
</authorization> | |
</system.web> | |
</location> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment