Sharepoint: bug or feature?
А вот это довольно интересный каламбур в Sharepoint-e.
Свалился как-то exception вида:
An update conflict has occurred, and you must re-try this action. The object SPWebApplication Name=SharePoint - 80 Parent=SPWebService is being updated by SHAPEL_P\Pash, in the w3wp process, on machine SHAPEL_P. View the tracing log for more information about the conflict. at Microsoft.SharePoint.Administration.SPConfigurationDatabase.StoreObject(SPPersistedObject obj, Boolean storeClassIfNecessary, Boolean ensure)
Как выяснилось проблема в данном куске кода
using (SPSite site = spWebApp.Sites.Add(serverRelativeUrl, title, description, LCID, null, spOwner.LoginName, spOwner.Name, spOwner.Email))
А фокус в том, что object.ReferenceEquals(spWebApp, site.WebApplication) — возвращает false!