I have build Custom Role Provider project working with MVC4 C# application and it works fine but when an error occur in role provider like SQL Server is down application receive error like:
Source Error:
Line 46: <roleManager enabled="true" defaultProvider="myRoleProvider">
Line 47: <providers>
Line 48: <add name="myRoleProvider" type="SDP.myRoleProvider.myRoleProvider, >SDP.UtilyxRoleProvider" applicationName="SDPlatform" />
Line 49: </providers>
Line 50: </roleManager>
Source File: d:\Projects\SDPlatform\SDPlatform\SDPlatform\web.config Line: 48
I'm not able to catch and handle error on web app side. I catch it on Role provider side but I'm not able to handle it on Web App side..
Thanks