Click here to Skip to main content
15,908,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,
I have created two projects in asp .net mvc and angular. One for Front and second for admin panel. I have used custom role provider in my admin project. I want to configure front in main virtual directory and admin in sub folder as virtual directory. When i run website with front works fine, but when i run admin website which hosted as sub virtual directory, the role provider is not called. Please guide me if anyone have any idea.

What I have tried:

i have configure it in my local iis
Posted
Updated 12-Jan-18 6:33am

1 solution

Open the site in IIS Manager. Right-click on the admin virtual directory, and select "Convert to Application".
 
Share this answer
 
Comments
Bhavesh Jogani IT 12-Jan-18 22:12pm    
Hey Richard.. thanks for your reply..I have already done that. When i tried to use it as a main domain than it works fine, but it not works while configure it in sub virtual directory(application)..
Richard Deeming 15-Jan-18 13:49pm    
Then you'll need to explain what "not working" means.

Try opening the site in a browser running on the server; that should give you a more detailed error message.
Bhavesh Jogani IT 15-Jan-18 23:57pm    
when i host my admin website in IIS as sub virtual directory then custom role provider not working, it means the role provider Roles.IsUserInRole not called.So as i provide role for different user, all the menu hidden even i assign the roles.

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