I have written web service program to fetch all list names from web application, in that case I was getting access denied error while retrieving Title of SPWEB object.
Error:
at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex) at 'SPWEB.Title' threw an exception of type 'System.UnauthorizedAccessException'
I have found that my current user don’t have access rights to access some of the sites, after giving required access rights my web service program gave me correct output without any errors.
:)
Showing posts with label Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException. Show all posts
Showing posts with label Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException. Show all posts
Sunday, July 26, 2009
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Labels:
Access is denied,
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)),
Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException,
MOSS 2007,
Personal Experience,
SharePoint,
SharePoint Object Model,
SharePoint web services,
SPWEB,
UnauthorizedAccessException
Subscribe to:
Posts (Atom)