Archive for the ‘SharePoint’ Category
Posted on May 11, 2009 - by Rouslan Grabar
SharePoint: Разворачиваем среду для разработки – Часть 3
В третьей части я расскажу о процессе установки и настройке расширений SharePoint для Visual Studio (VSeWSS). В качестве примера, я буду использовать мартовскую CTP версию расширений – VSeWSS 1.3 CTP.
Расширения призваны облегчить и унифицировать процесс разработки приложений на платформе SharePoint. Облегчение разработки достигается за счет предоставления шаблонов и визардов для создания основных элементов, таких как шаблоны списков, типов содержимого, пользовательскиз полей списка. Кроме того, в распоряжение разработчиков предоставлена инфраструктура деплоймента разрабатываемого решения, что значительно сокращает затраты времни на создание пакетов расширений и отладку.
(more…)
Posted on April 10, 2009 - by Rouslan Grabar
Новое на MSDN: Подборка книг для WSS/MOSS разработчиков
Подборка книг на английском:
Прошу обратить внимание на то что, по указанным адресам нет ссылок на скачивание :) Но там есть ссылки на Амазон, а уже там можно ознакомиться с содержанием книги и по рейтингу определить какие книги действительно стоят усилий, затраченных на их поиск на разного рода книжных развалах.
Posted on April 4, 2009 - by Rouslan Grabar
Expect the unexpected to happen while using SPSecurity.RunWithElevatedPrivileges method
While building small feature that takes advantage of new accelerator feature in Internet Explorer 8, I’ve encountered a weird side effect of using SPSecurity.RunWithElevatedPrivileges method.
I used this method to be able to write IE8 OpenService Accelerator XML file inside LAYOUTS/Feature_Name folder. The code was using user’s current context to determine the Url of SPWeb object for which to create the XML file.
In my code I misplaced the scope at which I obtained the web’s Url and got unexpected results on the production server. Below is the snippet from my actual code:
//here is where I moved offending url variable initialization
string webPreviewUrl = w.Url;
Guid siteId = w.Site.ID;
Guid webId = w.ID;
SPSecurity.RunWithElevatedPrivileges(delegate
{
using (SPSite site = new SPSite(siteId))
{
using (SPWeb web = site.OpenWeb(webId))
{
//this is where I had my webUrl initialy
//string webPreviewUrl = web.Url;
...
}
}
...
});
When the buggy version of code was generating the XML file webPreviewUrl contained not the public address, but internal address of the web front-end. This is because the instance of SPWeb object is not equivalent and its properties differ for different users. When we obtain instance of SPWeb for account with Full Access rights, the instance is being set up like we are sitting in the server room and using the console to access the web server, hence the SPWeb.Url property contains local URL address in it.
PS: Please note the Guids outside the using statements. These Guids are there not by an accident! :)
Posted on April 4, 2009 - by Rouslan Grabar
Новое на MSDN: Developer Best Practices Resource Center for SharePoint Server 2007
Стал доступен центр ресурсов и инструкций для разработчиков на платформе SharePoint. Пока только на английском языке.
Developer Best Practices Resource Center for SharePoint Server 2007

Posted on April 2, 2009 - by Rouslan Grabar
Уже можно скачать SharePoint Designer 2007
Моя заметка от пятницы 13 марта 2009, к счастью, не оказалась анонсом первоапрельской шутки. Русская версия SharePoint Designer 2007, начиная с 1 апреля 2009, доступна для скачивания. Владельцам текущих лицензий дана возможность пользоваться Exprepression Web 2 :)
Совет: SharePoint Designer 2007 очень удобно использовать для кастомизации узлов на девелоперской машине с последующим импортом с помощю VSeWSS Solution Generator для создания WSP пакета, пригодного для разворачивания у клиента.

