Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My team is converting a web forms application to MVC (and switching to C# from VB.NET). The reason for this is that we want to roll out changes to a module at a time, continuing to use old pages until all is replaced. We have a custom role provider defined. In the new code, everything works perfectly. However, in the old code, if we attempt to navigate to a page that is in a folder with a web.config file that defines authorization rules, the role provider is never called. Has anyone encountered this? If so, have you solved this?

What I have tried:

We removed those "child" web.config files after which point the old pages can be navigated to (of course, we need the authorization rules, so this was just a test to determine if they were part of the problem). We also tried moving the authorization rules to the parent web.config via <path> elements, but the same thing occurs.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900