The reason for 2 web.config files in the ASP.NET MVC is because
The web.config in the views folder is there to block direct access to the view aspx pages which should only get served through controllers.
Earlier, I removed this web.config earlier in my sample application, which was a mistake :)
No comments:
Post a Comment