Skip to content

Instantly share code, notes, and snippets.

@danielkillyevo
Last active December 12, 2015 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save danielkillyevo/4691913 to your computer and use it in GitHub Desktop.
Save danielkillyevo/4691913 to your computer and use it in GitHub Desktop.
web.config for enables js and css files in the view folder
<configuration>
//......
//......
<system.web>
<httpHandlers>
<add path="*.js" verb="GET,HEAD" type="System.Web.StaticFileHandler" />
<add path="*.css" verb="GET,HEAD" type="System.Web.StaticFileHandler" />
<add path="*" verb="*.cshtml" type="System.Web.HttpNotFoundHandler"/>
</httpHandlers>
//.....
//.....
</system.web>
//......
//......
<system.webServer>
//......
<handlers>
<remove name="BlockViewHandler"/>
<add name="JavaScriptHandler" path="*.js" verb="GET,HEAD" type="System.Web.StaticFileHandler" />
<add name="CssHandler" path="*.css" verb="GET,HEAD" type="System.Web.StaticFileHandler" />
<add name="BlockViewHandler" path="*" verb="*.cshtml" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
</handlers>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment