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.
View Complete Post