• Home
  • About
Subscribe: Posts | Comments | E-mail
  • SharePointTopics on Microsoft SharePoint Technology
  • Silverlight, WPFSilverlight, Windows Presentation Foundation
  • MiscellaneousRandom bits and rants

Rouslan Grabar on NET, SharePoint, SilverLight, WPF and other technology related topics

Archive for April, 2009


Posted on April 12, 2009 - by Rouslan Grabar

Личный опыт использования операционок Windows под Mac OS

Операционка Windows на интел Маке может присутствовать в двух видах:

  • установлена на отдельный раздел при помощи утилиты BootCamp, поставляемой на DVD-диске MacOS X10.5 Leopard
  • установлена в виде виртуалки под Parallels Desktop, VMWare Fusion (оба продукта платные) или под бесплатным опенсорсным VirtualBox

В первом случае вы работаете или в Mac OS X или переключаетесь в Bootcamp партицию для работы под Windows. Это реально не удобно, поскольку ребутить комп реально долго, как бы быстро эти ОСы не загружались.

(more…)


Posted on April 10, 2009 - by Rouslan Grabar

Новое на MSDN: Подборка книг для WSS/MOSS разработчиков

Подборка книг на английском:

  • для разработчиков Windows SharePoint Services
  • для разработчиков SharePoint Servers

Прошу обратить внимание на то что, по указанным адресам нет ссылок на скачивание :) Но там есть ссылки на Амазон, а уже там можно ознакомиться с содержанием книги и по рейтингу определить какие книги действительно стоят усилий, затраченных на их поиск на разного рода книжных развалах.


Posted on April 7, 2009 - by Rouslan Grabar

Entry for Remix’09 IE8 Add-on Contest

My entry to Remix’09 IE8Add-on contest

Media info: Russian language, 16 Megs, 12 minutes

Alternate downloads: WMV 800×600 20 Mb WMV 320×240 8Mb iPod WMV 320×240 17Mb

If you like the feature and would like to support my contest entry, please submit your vote at the remix.ru site. The remix.ru site is a site operated by Microsoft Russia. You will need your Microsoft LiveID to cast your vote. Thank you.

Если вам понравилось мое расширение для узлов SharePoint и вы хотите поддержать мою заявку на конкурсе, пожалуйста проголосуйте на сайте remix.ru. Для голосования вам потребуется Microsoft LiveID. Спасибо!


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
developer-best-practices-resource-center-for-sharepoint-server-2007


« Older Entries

  • Recent Posts

    • Доклад по PerformancePoint Server 2007 на сайте TechDays.ru
    • How to allow only Folder items to be created in the List root folder
    • Move list item into a subfolder in the same list
    • Краткий обзор возможностей SharePoint 2010 для конечных пользователей
    • Get Free Typemock licenses – ASP.NET bundle launch
  • Tags

    Для новичков Customization Developer Utility Fileds For Beginners IIS mac os x Misc MOSS MSDN photosynth Powershell Russian Screencast SharePoint SharePoint Designer Silverlight, WPF Snippet SPItemEventReceiver techdays timer job Toolbox tricks troubleshooting Virtualisation VSeWSS wcf web service Windows windows authentication WPF WSS
  • Blogroll

    • My personal journal in Russian.
    • Picture Downloader Software
    • Russian SharePoint Community
  • Archives

    • November 2009
    • October 2009
    • July 2009
    • May 2009
    • April 2009
    • March 2009
© 2009 Rouslan Grabar. All Rights Reserved.