21 Juni 2009

SharePoint Search Offline / Migration of Database Server

After migration of all SharePoint Databases to a new Server SharePoint Search isn't working anymore. If you access the Search Setting Page of your SSP it gives you the following Error:

The search service is currently offline. Visit the Services on Server page in SharePoint Central Administration to verify whether the service is enabled. This might also be because an indexer move is in progress.

All my Search Services (WSS Search / MOSS Search) were started successfully, but I still got the error.

I tried the following with no success:

  • Deleted and rebuilt SSP
  • Disconnected / reconnected the Server from the Farm
  • Repaired SharePoint Installation
  • Checked launch Component Permissions on OSearch COM Component
  • Rebuilt whole Farm

The only thing that solved the Problem was the Upgrade to SP 2. Before I had SP1 and Infrastructure Updates installed. Don't waste your time - just upgrade!

29 April 2009

Display SharePoint Metadata in Word 2003

Yes, there are still customers who use Office 2003 in combination with SharePoint 2007...

So i had to find a generic solution do display SharePoint Metadata in Word 2003 templates. I found different solutions to achieve this, but none of them solved all my Problems. The most common Problem ist the update of your Fields at the right time.

Basics / Limitations:
  • SharePoint Metadata is mapped into Word 2003 over Document Properties
  • Only Fields of Type "Text" can be mapped (If you need to display Values of other Fields than Type Text, you need to add a Textfield to your Content Type and use a Eventhandler to Copy the Value of your desired Field to the Textfield and map this as Doument Property to your Word Template. A common case could be "Version" or Author of a Document, which are OOB no Textfields)
  • OOB Document Properties are updated on Print only (This is a Word Option which is set by Default)

    How to:
  • Bind your Word Template to corresponding ContentType of the DocLib
  • Add the following Code, which updates the Fields when the Document opens, as Macro (Macro on the current Document, not as Module) to your Word Template:

    Private Sub Document_New()

    ActiveDocument.Fields.Update

    End Sub

    Private Sub Document_Open()

    ActiveDocument.Fields.Update

    Dim oStory As Object
    Dim oToc As Object

    'exit if no document is open
    If Documents.Count = 0 Then Exit Sub
    Application.ScreenUpdating = False

    For Each oStory In ActiveDocument.StoryRanges
    oStory.Fields.Update 'update fields in all stories
    Next oStory

    For Each oToc In ActiveDocument.TablesOfContents
    oToc.Update 'update TOC's
    Next oToc

    Application.ScreenUpdating = True

    End Sub
    Private Sub Document_Close()

    ActiveDocument.Fields.Update

    End Sub

    Private Sub Document_Sync(ByVal SyncEventType As Office.MsoSyncEventType)

    End Sub

    This Code updates all Sections of the Document including Header and Footer, not just the Content Section.

Save your Template and create your first Document from this Template, enjoy the Interopability from SharePoint 2007 and Office 2003. ;-)

21 April 2009

isolutions WCM Tools auf Codeplex

In den SharePoint Projekte, welche isolutions realisiert, verwenden wir immer unser WCM Framework. Es handelt sich dabei um ein Toolset von verschiedenen Erweiterungen und Web Parts für SharePoint Projekte.

Ein kleiner Teil davon habe ich in den vergangenen Tagen auf CodePlex publiziert. Folgende Module sind enthalten:

  • Stop Variation Propagation: Verhindert das Überschreiben Sprachvariations wenn die Hauptsprache publiziert wird. Out-of-the-Box werden beim Publizieren einer Page in der Hauptsprache die anderen Sprachvariationen der Page überschrieben.
  • Approval Workflow Configuration Console: Verändern der Approval Workflow Konfiguration auf mehreren Sites mit wenigen Klicks.
  • Approval Workflow Copy Event Receiver: Kopiert beim Erstellen einer neuen Subsite die Einstellungen des Approval Workflows der Parent Site.
  • Uncustomized Files Console: Zeigt mit SharePoint Designer veränderte Dateien an.

Das Projekt ist über folgendes URL http://iswcm.codeplex.com erreichbar.

16 April 2009

SharePoint SP2 am 28. April

Während gestern die Neuigkeit betr. der Bezeichnung der nächsten Version von SharePoint (“SharePoint 2010”) die Runde machte, steht heute die Ankündigung von SP2 für MOSS an.

Aus den verschiedenen Fixes und Performance Verbesserungen gilt folgendes hervorzuheben:

  • STSADM Befehl, welcher die Farm auf die Upgradefähigkeit auf SharePoint 2010 untersucht.
  • Verbesserung der Form-based Authentication.
  • Volle Unterstützung für Internet Explorer 8 sowie FireFox 2.0 und 3.0 als level two Browser: gemäss der Browser Support Liste sind diese heute noch nicht unterstützt.
  • STSADM Befehl, welcher Fehler der WCM Variations sucht (und behebt?).

10 Februar 2009

Back to the Roots: Entwickeln auf der Basis von SharePoint Online

Ich habe mir heute den Microsoft SharePoint Online Standard Developer Guide angeschaut. Dabei werden die Erweiterungsmöglichkeiten von SharePoint Lösungen in der Cloud (dem sogenannten SharePoint Online) beschrieben. Das Dokument umfasst 136 Seiten; das Essentielle findet sich gleich zu Beginn.

Erlaubt ist die Verwendung von SharePoint für no-code Workflows, Content Types, Branding mittels Master Page und Page Layouts. Das Templating der Sites erfolgt mittels STP Dateien. InfoPath Formulare ohne Custom Code können eingespielt werden. Für etwas ausgefallenere Wünsche zum Anzeigen von Content steht das Data Form Web Part sowie die Web Services zur Verfügung.

Verboten ist jeglicher Code. Ob als Inline Code, innerhalb eines Workflows oder eines InfoPath Forms. Auch die Verwendung von Features, Solutions, Web Parts sowie Site Definitions ist untersagt. Viel bleibt da nicht mehr. Schade.

Im Developer Guide findet sich auch eine detaillierte Funktionsübersicht, welche ich euch hier nicht vorenthalten möchte.

 

Portal

Collaboration

Content Management

Search

Business Process Forms

Business Intelligence class="style4">

Online & Server

RSS content syndication

Privacy and security

Audience targeting (by group only)

Site and document aggregation

Site Manager

Mobile device support

Portal site templates

SharePoint Sites and Documents Roll-up Web Parts

Client integration

Integration with Microsoft Office SharePoint Designer (except site backup and restore)

All standard templates

Wikis

Blogs

People and group lists

Calendars

E-mail integration

Task coordination

Surveys

Document collaboration

Issue tracking

Business document workflow support

Document information panel

Document action bar

Retention and auditing policies

Navigation controls

Content authoring

Page layouts

Site variations

Security 

Forms libraries

Out-of-the-box workflows

Custom no-code workflows 

Server only

My Site personal site

Site Directory

User profiles and the profile store

Colleagues and Memberships Web Parts

Social Networking Web Part

Mail-enabled lists

Real-time presence and communication

Content publishing and deployment

Content management site templates

Policies, auditing, and compliance

Records repository

E-mail content as records

Legal holds

Integration with Microsoft information rights management (IRM)

WYSIWIG Web content editor

Content staging

Slide libraries

Document management site templates

High-fidelity Web sites with consistent branding

People search

Business data search

Enterprise content sources

Cross site-collection search

Administration and management

Indexing controls

Custom code workflows

Browser-based forms

Centralized forms management and control

Design once development model

Form Import Wizard

Integrated deployment model for no-code forms

Compatibility Checker

Integrated business intelligence dashboards

Key performance indicators

Filter Web Parts

Integrated flexible spreadsheet publishing

Sharing, management, and control of spreadsheets

Web-based business intelligence using Microsoft Office Excel® services

Data connection libraries

Business Data Catalog

Business data Web Parts

Business data actions

Report Center

SharePoint Online steht zurzeit als Teil der Business Productivity Online Standard Suite zur Verfügung. Sie kann für 30 Tage gratis getestet werden – man braucht dazu aber einen Live ID Account, welcher auf einen US Bürger registriert ist.

FAST Search for SharePoint angekündigt

An der FASTforward’09 hat Microsoft heute zwei neue Search Produkte angekündigt:

  • Bei FAST Search for SharePoint handelt es sich um ein High-End Search Server, welcher die Enterprise Search Funktionen von FAST ESP in SharePoint verfügbar machen wird. FAST Search for SharePoint wird Teil von SharePoint 14 sein!
  • Mit FAST Search for Internet Business können grosse Internet Sites um “search-driven experiences” erweitert werden. Eine erste Beta hiervon soll in der zweiten Jahreshälfte erscheinen.

In der Zwischenzeit steht, wie Michael Gannotti schreibt, den Firmen mit SharePoint Enterprise CALs und Software Assurance eine um 80% verbiligte Lizenz von FAST ESP zur Verfügung (keine CAL, $25k pro Server). Zusammen mit den ESP Web Parts kann man mit relativ wenig Geld eine High End Enterprise Search Lösung auf SharePoint und FAST ESP aufbauen.

29 Januar 2009

SharePoint Dispose Checker Tool verfügbar

Die SharePoint Objekte SPSite und SPWeb müssen, je nach dem wie sie erstellt wurden, wieder freigegeben werden. Geschieht dies nicht, läuft der Speicher (und das SharePoint Log) voll. Vieles wurde bereits darüber geschrieben, auch im MSDN. Nun stellt Microsoft ein Tool zur Verfügung, welche den Code prüft und nicht “disposte” Objekte meldet.

Nach dem die Ankündigung im November des letzten Jahres auf grosses Echo gestossen ist, wurde es ruhig um SPDisposeCheck. Heute habe ich nun bei Waldek Mastykarz gelesen, dass das Tool erschienen ist und von der MSDN Code Gallery unter http://code.msdn.microsoft.com/SPDisposeCheck heruntergeladen werden kann.

SPDisposeCheck überprüft Assemblies nach nicht freigegeben SharePoint Objekten (d.h. vor allem SPSite und SPWeb). Ich konnte es natürlich nicht lassen, dass Command Line Tool gegen einige meiner SharePoint Assemblies laufen zu lassen. Viel hat SPDisposeCheck nicht gefunden. Die angezeigten Fehler waren alles False Postives – davor wird im Log aber auch gewarnt und diese könnte man mit einer Declaration ([SPDisposeCheckIgnore … ]) auch ignorieren.

02 Dezember 2008

SharePoint + jQuery

jQuery ist ein Open Source AJAX Framework, welches auf einem schmalen Footprint basiert und eine grosse Community dahintersteht, welche viele Plug-Ins bereitstellt. jQuery kann man schnell und einfach mittels JavaScript das HTML Dokument traversieren. Für SharePoint (und ASP.NET) Entwickler ist jQuery spannend, weil Microsoft jQuery offiziell unterstützt und z.B. IntelliSense Support in Visual Studio 2010 einbauen wird.

Jan Tielens hat auf seinem Blog ein nettes Beispiel den Einsatz von jQuery als Ersatz für die TopNavigation unter SharePoint.

Heute hat er nun in seinem Blog weitere Anweisungen gepostet und dazu den Code auf CodePlex zur Verfügung gestellt. Seine Lösung teilt sich in zwei Solutions auf:

  • jQuery for SharePoint 2007 fügt mittels eines DelegateControl einen Link im Seitenheader auf das jQuery Framework hinzu. Sehr elegant gelöst und auch für eigene Projekte geeignet.
  • Im WSP DockNavigationSetup wird das jDock Plug In mitgeliefert sowie DelegateControls und Assembly, welche die Navigation verändern.

Macht dies nicht Lust auf mehr? Sobald ich Zeit habe, werde ich mit jQuery herumexperimentiert und meine Erfahrungen hier posten.

25 November 2008

SharePointReviews.com: Unhängige Reviews von SharePoint Erweiterungen

Mit SharePointReviews.com gibt es endlich ein Produkt Verzeichnis, welches die vielen SharePoint Erweiterungen auflistet und kurz beschreibt. Neben Webparts findet man in diesem Verzeichnis auch Tools für die Administration und Migration sowie z.B. Offline Clients.

Gelistet werden neben Bezahl Software (welche direkt gekauft werden kann) auch Open Source Erweiterungen. Alles versenden mit Ratings und Kommentaren. Toll Sache!

Unit Testing mit Microsoft SharePoint

Wer SharePoint Anwendungen entwickelt und dabei viel auf SharePoint Objekte zugreift, um Daten im SharePoint zu lesen oder zu verändert, hat seine liebe Mühe, Unit Tests zu erstellen. Typemock hat mit dem Typemock Isolator For SharePoint ein Produkt auf den Markt gebracht, dass es erlaubt die Zugriffe auf SharePoint Objekte zu kapseln. Im Unit Test werden SPSite, SPWeb, SPListItem, etc. von Typemock erstellt und verwaltet. Dies führt dazu, dass die Unit Tests ohne SharePoint ausgeführt werden können. Z.B. auf dem Team Foundation Server.

Das Schreiben der Unit Tests und das Kapseln der SharePoint Objekte wird aber sicherlich zu Beginn nicht ganz einfach von der Hand gehen. Die Frage ist auch, ob Typemock mit all den kniffligen Issues des SharePoints zu Recht kommt.

Hier noch der Text, um eventuell noch eine gratis Lizenz zu ergattern:

Typemock are offering their new product for unit testing SharePoint called Isolator For SharePoint, for a special introduction price. it is the only tool that allows you to unit test SharePoint without a SharePoint server. To learn more click here.

The first 50 bloggers who blog this text in their blog and tell us about it, will get a Full Isolator license, Free. for rules and info click here.