I am having a problem using role providers in ASP.Net. I have 2 role providers the default one which is for a forum and the second one which is for the main site. I need to use the non-default role provider to allow users to access pages. I have got as far as the user loggin in fine and going to the page when an error occurs.
If I login and set in my "secure" folder permission for all logged in users to view (using the web.config file in that folder) it works ok. Its just when I specify a specif role which exists in the non-default role provider I get a null reference exception appear on the page. The call stack points to the default role providers connection string. Therefore I am assuming I need to change something in the web.config files for each secure folder to tell it to use the non-default role provider but I have not found a way of doing this. An example of one of the secure folders web configs is:
< ...
Go to the complete details ...