asp.net mvc - Two web.configs? -


asp.net mvc applications has 2 web.configs. 1 in root folder , 1 in views folder. why?

from pro asp.net mvc 2 book:

/views/web.config:

this not application’s main web.config file. contains directive instructing web server not serve *.aspx files under /views (because should rendered controller, not invoked directly classic web forms *.aspx files). file contains configuration needed make standard asp.net aspx page compiler work asp.net mvc view syntax.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -