.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

"Microsoft.SharePoint Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :SharePoint


I am adding an item to a list programatically. The credential under which the code runs has contribute permission to list. When the code is executed, it adds the item to the list with below exception. I guess, after adding the item to the list it calls SetListProps method where it throws exception. Any one can help why it is? Because of this my code is not moving ahead as it breaks here because of this exception

Microsoft.SharePoint Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex) at Microsoft.SharePoint.Library.SPRequest.SetListProps(String bstrUrl, String bstrListName, Boolean bMigrate) at Microsoft.SharePoint.SPList.Update(Boolean bFromMigration) at Microsoft.SharePoint.SPList.Update()

However, if I give full control it works fine.

Also, with the same credential, a new item can be added to the list with out any issue from the front end.

Thanks you


View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend