asp.net mvc - Two web.configs? -
asp.net mvc applications has 2 web.config
s. 1 in root folder , 1 in view
s 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
Post a Comment