Not able to catch "Access Denied" exception

S

Sachin Arey

Hi,

We have developed ASP.NET web service for Windows sharePoint services
and web service client. This web service calls SharePoint object
methods
internally.
For exceptions, we have put try/catch blocks. From SP OM calls, we get
exception with message "Access Denied".
Even if we catch this exception in the web service, it is carried over
to web service client on executing code within catch block.
On catching exception on client side, we get message "The
request failed with HTTP status 401: Unauthorized".

Is there any way we can catch exception with "Access Denied" on server
itself properly? I use following exception class.
try
{
}
catch( Exception exe)
{
}

Is there any special exception class for catching such "access denied"
failure?

I really appreciate help in this regard.

Thanks and Regards,
Sachin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top