Custom Forms Authentication + MVC3 + AuthorizeAttribute
问题 I am essentially doing is this. However, whenever I use the built in AuthorizeAttribute, the MVC framework (I'm guessing) never looks at my principal to determine if the user has the proper roles. It keeps trying to create a new MDF file in the app_data directory, and because it doesn't have privileged it blows up. Is this expected behavior, and should I derive my own AuthorizeAttribute and check the principal myself? Another weird behavior to point out is that I have two sites on the same