вторник, 23 ноября 2010 г.

How to show html placed on SPS 2010 in Content View web-part

Проблема: При переносе решения из MOSS 2007 в SPS 2010 веб часть отображение содержимого выводит окно браузера предлагая сохранить файл. Что более неприятно, после отмены загрузки перестают работать практически весь динамический контент. Решение: 1. Открыть центр администрирования Microsoft SharePoint 2010 a. Перейдите по ссылке «Управление веб- приложениями» в разделе управление приложениями b. Выберите приложение, на котором установлен портал c. Нажмите кнопку «Общие параметры» на ленте и выберите в выпадающем меню пункт «Общие параметры» d. В разделе «Обработка файлов в браузере» выберите кнопку «Не строгая» e. Сохраните настройки, нажав кнопку «Сохранить» Кстати это не "Бага" а "Фича", направленная на увеличение безопасности клиента. В описании написано что такое поведение введено по умолчанию, что бы в контексте браузера не могли выполняться вредоносные скрипты. В общем используйте с осторожностью.

понедельник, 15 ноября 2010 г.

Failure when deploy file via module in sharepoint

Проблема: При развертывании файла из модуля, ссылка на файл появляется в библиотеке, но сам файл не создается. Симптомы:
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        g1jj Unexpected Localized content could not be converted from UTF-8 to UTF-16 BSTR, error 0x80070057. 
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        g1jk Medium   Generation of localized content (XML=0) for LCID 1049 failed with error 0x80070057. 
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        g1ji High     Failed to localize the file file:///C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/Template/Features/TestSite_RsiRssLibrary/KitchenStore/3-.htm while caching ghosted file content. Error 0x80070057. 
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        avro High     Relying on fallback logic in VghostPageManager::getGhostDocument() for document: 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\Features\TestSite_RsiRssLibrary\KitchenStore\3-.htm' 
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        avro High     Relying on fallback logic in VghostPageManager::getGhostDocument() for document: 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\TestSite_RsiRssLibrary\KitchenStore\3-.htm' 
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        avro High     Relying on fallback logic in VghostPageManager::getGhostDocument() for document: 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\Features\TestSite_RsiRssLibrary\KitchenStore\3-.htm' 
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        g1jj Unexpected Localized content could not be converted from UTF-8 to UTF-16 BSTR, error 0x80070057. 
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        g1jk Medium   Generation of localized content (XML=0) for LCID 1049 failed with error 0x80070057. 
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        g1ji High     Failed to localize the file file:///C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/Template/Features/TestSite_RsiRssLibrary/KitchenStore/3-.htm while caching ghosted file content. Error 0x80070057. 
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        avro High     Relying on fallback logic in VghostPageManager::getGhostDocument() for document: 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\Features\TestSite_RsiRssLibrary\KitchenStore\3-.htm' 
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        avro High     Relying on fallback logic in VghostPageManager::getGhostDocument() for document: 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\TestSite_RsiRssLibrary\KitchenStore\3-.htm' 
11/13/2010 17:44:17.11  vssphost4.exe (0x1C24)                   0x2FB4 SharePoint Foundation          General                        avro High     Relying on fallback logic in VghostPageManager::getGhostDocument() for document: 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\Features\TestSite_RsiRssLibrary\KitchenStore\3-.htm' 


Как решить: Сохраняйте файл в кодировке UTF-8. Соответственно к бинарным файлам это не относиться. Пример кода:
<Module Name="KitchenStoreFiles" Url="KitchenStore" RootWebOnly="FALSE" Path="KitchenStore\" xmlns="http://schemas.microsoft.com/sharepoint/">
  <File Path="3-.htm" Url="меню-понедельник.htm" Type="GhostableInLibrary">      
  </File>
 </Module>


пятница, 5 ноября 2010 г.

Workflow Essentials 2010 cool stuff

05.11.2010
00:07

Workflow Essentials 2010 Beta Released

SharePoint Solutions is pleased to announce the beta release of our new Workflow Essentials 2010.

Once installed to your SharePoint server, Workflow Essentials snaps right into SharePoint Designer 2010’s Workflow Designer “Activities” and “Conditions” to give you nearly double the workflow creation possibilities.

Need your workflow to:

  • Loop through list items?
  • Create a site?
  • Send an email with an attachment?
  • Grant permission on an item?

WE2010 makes all of that possible and a whole lot more. Your workflow action/condition options go from 37 to more than 60!

And your new options join the out-of-the-box activities and conditions right there in the Workflow Designer interface. No proprietary interface or new program to learn. It’s all right there in SharePoint Designer 2010.

You can begin designing more powerful, more capable, more sophisticated workflows right away!

Download the beta of Workflow Essentials 2010, and take it for a free test drive. You’ll be amazed at how much more you can accomplish with these expanded options.

Learn more about Workflow Essentials 2010.

Download the Workflow Essentials 2010 beta now.

We are happy to answer your questions about the product, both before and as you test it. Drop us an email or give us a call.