vmandem
asked on
How to resolve the HResult error in SharePoint List
I'm trying to update a SharePoint custom list columns in a web service method. I was able to do it first time then when I run the program to update the field I get the below error. What could be the reason
Microsoft.SharePoint.SPExc eption: Exception from HRESULT: 0x80040E2F ---> System.Runtime.InteropServ ices.COMEx ception (0x80040E2F): Exception from HRESULT: 0x80040E2F
at Microsoft.SharePoint.Libra ry.SPReque stInternal Class.AddO rUpdateIte m(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish)
at Microsoft.SharePoint.Libra ry.SPReque st.AddOrUp dateItem(S tring bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish)
--- End of inner exception stack trace ---
at Microsoft.SharePoint.Libra ry.SPReque st.AddOrUp dateItem(S tring bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish)
at Microsoft.SharePoint.SPLis tItem.AddO rUpdateIte m(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames, Object& objAttachmentContents, Boolean suppressAfterEvents)
at Microsoft.SharePoint.SPLis tItem.Upda teInternal (Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents)
at Microsoft.SharePoint.SPLis tItem.Upda te()
at AddEmailService.Service1.C ontenttype (String xmlfile) in C:\Documents and Settings\test\My Documents\Visual Studio 2008\Projects\AddEmailServ ice\AddEma ilService\ Addemail.a smx.cs:lin e 121}
Microsoft.SharePoint.SPExc
at Microsoft.SharePoint.Libra
at Microsoft.SharePoint.Libra
--- End of inner exception stack trace ---
at Microsoft.SharePoint.Libra
at Microsoft.SharePoint.SPLis
at Microsoft.SharePoint.SPLis
at Microsoft.SharePoint.SPLis
at AddEmailService.Service1.C
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://blogs.msdn.com/krichie/archive/2006/07/25/678040.aspx