Ask a Question related to ASP.NET Security, Design and Development.
-
Patrick #1
Exception Handling declarative security
I'm reading myself into security and ASP.Net.
I have written some demo code and now I'm wondering how you deal with
exception handling when you use declarative security
I have a method with the following attribute
[PrincipalPermissionAttribute(SecurityAction.Demand , Name="Patrick")]
private void MyFunction()
{
DoSomething().......
}
When I'm not athorized I will be redirected to a default errorpage.
My question is what is the best way to handle. 1)Redirect to a
customized errorpage or 2) is there a way to handle the exception so I
can raise a user friendly message to my frontend.
Thanks in advance
gr Patrick
Patrick Guest
-
Custom IPrincipal and declarative security checking
download http://www.pluralsight.com/toolcontent/show_pipeline.zip put the ashx file in a web app and run it through your browser - you'll see the... -
Custom HttpHandlers and Declarative Security
Hello All, I am using maverick.net (a framework based around a custom httphandler in ASP.NET) and I'm trying to integrate declarative security... -
Declarative Security in ASP .net
Hi, I am trying to use declarative security in a ASP .net application With the statement below ... -
SoapExtension for Global Exception handling; but prevent exception from propagating!!
Hi, I wrote a SoapExtension for Global Exception handling in Webservice and it works!!!! Now i want to catch the exception that happen in the... -
Exception Handling.
Hi, Considering the scenario for handling exceptions in Web Application where we have Presentation layer, Business layer and Data Access layer; if... -
Chris Rolon #2
Re: Exception Handling declarative security
You could subscribe to UnhandledException event handler on the current app
domain. In that way you could return a friendlier message.
Chris Rolon
"Patrick" <pveechoud@vxcompany.com> wrote in message
news:46766261.0404222334.71a60b80@posting.google.c om...> I'm reading myself into security and ASP.Net.
>
> I have written some demo code and now I'm wondering how you deal with
> exception handling when you use declarative security
>
> I have a method with the following attribute
>
> [PrincipalPermissionAttribute(SecurityAction.Demand , Name="Patrick")]
> private void MyFunction()
> {
> DoSomething().......
> }
>
> When I'm not athorized I will be redirected to a default errorpage.
>
> My question is what is the best way to handle. 1)Redirect to a
> customized errorpage or 2) is there a way to handle the exception so I
> can raise a user friendly message to my frontend.
>
> Thanks in advance
>
> gr Patrick
Chris Rolon Guest



Reply With Quote

