How do I go about Authorization in MVC 2?
问题 How do I go about Authorization in MVC 2? I want to use AD groups/roles rather than the default that is provided. That seems to be "AspNetSqlMembershipProvider". Anyway I put : [Authorize(Users = "username")] public ActionResult About() { ViewData["Welcome"] = "Welcome About"; return View(); } And then loading the page gives me: The connection name 'ApplicationServices' was not found in the applications configuration or the connection string is empty. Line 34: <providers> Line 35: <clear />