Sharepoint: bug or feature?

среда, 4 июня 2008 

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

Комментарии

rss

Комментаформа

For spam filtering purposes, please copy the number 6203 to the field below:

Навигационное древо

Каталог

Будет всякого разного:
Copyright © 2007 Шапель Павел.
Powered  by