Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
383 Points
101 Posts
May 07, 2012 04:06 PM|LINK
Hi to All,
I implemented custom Authorization in WCF service like this
public class MyAuthorizationManager : ServiceAuthorizationManager { protected override bool CheckAccessCore( OperationContext operationContext) { //something return true; //other something return false; } }
also in added the required configuration in web.config.
all woks fine, but i dont know how to handle the exception when the request its not Authorized, so whenever somethig wrong occurs a "not at all look alike my application screen" is showed!
anyone can help me on how to handle this?
thanks!
ze.espogeira
Member
383 Points
101 Posts
Error handling in Custom Authorization
May 07, 2012 04:06 PM|LINK
Hi to All,
I implemented custom Authorization in WCF service like this
public class MyAuthorizationManager : ServiceAuthorizationManager { protected override bool CheckAccessCore( OperationContext operationContext) { //something return true; //other something return false; } }also in added the required configuration in web.config.
all woks fine, but i dont know how to handle the exception when the request its not Authorized, so whenever somethig wrong occurs a "not at all look alike my application screen" is showed!
anyone can help me on how to handle this?
thanks!