ЖизниЛЕНТА

Copyright © 2007 Шапель Павел

Sharepoint: bug or feature?

with one comment

А вот это довольно интересный каламбур в 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!

Written by Pash

Июнь 4th, 2008 at 11:18 пп

Posted in Разработка

Tagged with

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply