Saturday 12 July 2014

(Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)

MOSS Error: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
solution:In our case we got to the bottom of this issue and determined a corrupt
webtempcustom.xml file in the C:\Program Files\Common Files\Microsoft Shared\web server
extensions\12\TEMPLATE\1033\XML directory causing the problem.
------------------------------------------------------------------------------
Error:Cannot connect to configuration database : Sharepoint
Solution: Go to-->services.msc-->SQL Server (MSSQLSERVER)- Run it.
If you get any login user error .Right click on "SQL Server (MSSQLSERVER)"-->go to
Properties-->Log On-->Select Local System Account.Then run the service
---------------------------------------------------------------------------------
Exception of type Microsoft.SharePoint.SoapServer.SoapServerException was thrown
Solution:
However I checked my syntax on my code which was:
UserGroup.AddAttachment(FileName, bytestream,ListName, ListItemID);
And I found that I had the items in the string the wrong was round. They should have been:
UserGroup.AddAttachment(ListName, ListItemID, FileName, bytestream);
Then the error went away!