SignalR and SharePoint: Live Download Trackingby Max Melcher on 13.05.2012 at 20:52

I uploaded my first video to youtube today:

Apparently the captions were lost during the upload, next time I will explain a bit more :)

Maybe next weekend I add some code examples and further details.

ShareCamp 2012: SharePoint 2010 “Best Tools” (v2)by Max Melcher on 26.04.2012 at 10:37

At this year’s ShareCamp I collected the best SharePoint 2010 tools for IT-Pros and Developers. This year I extended the session with “the best solutions” – we ended with about 40 tools – and had a some fun during the session.

Some of them are a really “must-have” – others are “hidden-gems” and special purpose tools – go check them out!

Download

You can download the slides with all the tools – for your convenience I added the links to all tools:

Whats your favorite tool / solution?

I would love your addition in the comments – please share them!

Missing FAST Search Center Templateby Max Melcher on 26.04.2012 at 09:40

Ever wondered where the FAST Search Center Template is and why the hack its not there when you create a new site?

Start this little powershell and you can create it:

$site = Get-SPSite -Identity http://sp2010.demo.com/sites/demo
$site.Features.Add("5EAC763D-FBF5-4d6f-A76B-EDED7DD7B0A5")

New themeby Max Melcher on 11.03.2012 at 00:10

Starting from today melcher.it has a new look. My new template is metro-styled and its based on this codeplex template.

FAST: Open Library/Location in FAST for SharePoint search resultsby Max Melcher on 20.02.2012 at 17:25

Recently I read a blog post how to customize the core result webpart – thats the webpart showing the results after you do a search with SharePoint 2010. The the output was modified so that you can click on a link to open the library/folder containing the document you searched – quite handy in my eyes.

SharePoint Search

The solution for SharePoint search is quite easy, just add

<xsl:if test="isdocument = 'True'">
<a>
<xsl:attribute name="href">
<xsl:value-of select="sitename"/>
</xsl:attribute>
View Folder
</a>
</xsl:if>

and you are good to go (more details in the mentioned blog post).

The Problem

If you are doing the same thing with FAST for SharePoint (FS4SP) it does not work. The propertysitename is not filled with the location of the document, the FAST crawler extracts, what it should – the sitename.

The Solution

So I started up Visual Studio, copied the xslt and the search result xml and created a little xslt function to extract the path to a document and to show a link:

<!-- changes for Open Library-->
 <div class="{$docPreviewStyle} srch-Metadata2" style="margin-bottom:20px;">
 <xsl:if test="isdocument = 'True'">
 <a>
 <xsl:attribute name="href">
 <xsl:call-template name="build-location-link">
 <xsl:with-param name="list" select="path" />
 </xsl:call-template>
 </xsl:attribute>
 View Location
 </a>
 </xsl:if>
 </div>

In the xstl search for the comment “<!– END Additional links –>” – add my code after the closing </div>, thats arround row number 655.

Then add the template “build-location-link” close to the end of the xslt. I added mine right before the comment “<!– End of Stylesheet –>”. That should be line number 968.

<xsl:template name="build-location-link">
 <xsl:param name="list" />
 <xsl:variable name="first" select="substring-before($list, '/')" />
 <xsl:variable name="remaining" select="substring-after($list, '/')" />
 <xsl:value-of select="$first" />/<xsl:if test="substring-after($remaining, '/')">
 <xsl:call-template name="build-location-link">
 <xsl:with-param name="list" select="$remaining" />
 </xsl:call-template>
 </xsl:if>
 </xsl:template>

The result should look like this:

In my eyes the xslt is not the most elegant solution (any way to remove the recursion with xslt?) – but – I tested it in several installations now – the users loves it!

If you have trouble copy/paste all out of this file: FAST Open Library XSLT.

Further improvements?

So how did you modify the search results – any modifications worth to share?

 

Wishlist: SharePoint 2013by Max Melcher on 31.01.2012 at 12:15

Yesterday the SharePoint 2013 SDK (Preview) was released and that made me thinking:

What are my wishes for SharePoint 2013

  1. FAST for SharePoint as Service Application
    • That’s my top wish. Easier provisioning of FAST and easier (cheaper :) ) licensing, e.g. coupled with ECALs, would help FS4SP to cover more ground.
    • The same applies to Reporting Services with SQL 2012 (Denali) so I think my wish could come true.
  2. jQuery Integration (no silverlight anymore! )
    • Drag and Drop everywhere
    • More ajax / WCF-Webservices
  3. Metro-Style MasterPages
  4. Better Linq for SharePoint
    • Support impersonation!
  5. Powershell everywhere
    • Configuring something in the Central Administration and the option to get the configuration changes as a powershell script – would love it! I heard somewhere that’s the way Exchange does it…

 

More wishes to come

I think that’s a good start, I will update the post with more wishes over time.

How about your wishes? Share them please!

 

Patch: Cumulative Update December 2011by Max Melcher on 27.01.2012 at 08:06

I installed a new SharePoint demo and developing environment on my notebook and started with the slip-streamed installation of SharePoint with SP1 included.

After configuring everything I tried to upload some Pictures to the UserProfiles I created in my Active Directory (synchronization did work!!!) but I got faced with this nice error:

Method not found: 'System.String Microsoft.Office.Server.UserProfiles.UserProfileGlobal.GetImportPhotoFolderName(System.Globalization.CultureInfo)'.

I really love the User Profile Service

I did some research and found out that the SharePoint 2010 Cumulative Update December 2012 should fix some problems of the User Profile Service (still wondering why this could pass the quality control…).

  • 1. The UserProfileManager.GetUserProfile method returns incorrect user profiles in SharePoint Server 2010.
  • 2. An administrator cannot upload a user’s profile picture to Central Administration in SharePoint Server 2010. Additionally, the administrator receives the following error message:
  • There was an error saving the picture. Please try again later.

It works!

So after 3 times downloading the 1.1gb uber-patch (it includes the SharePoint Foundation updates and the languages packs) I started the updated and … waited. I really dont know how long it took to update, after 30 Minutes of no progress I decided to go to bed – this morning I saw the update was successfully installed. After that I rebooted.

Remember: After the update you have to run

psconfig -cmd upgrade -inplace b2b -wait

or the SharePoint Configuration Wizard to update the Content-DBs and get every other bit updated.

Download

Read the KB first. Only download and install the CU after carefully testing it on a TEST system:

KB: http://support.microsoft.com/default.aspx?scid=kb;EN-US;2597014

Download: http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=2597014&kbln=en-us 

Any other experiences with this CU?

Please feel free to share it in the comments, would love it!

Fast for SharePoint: Build & version numbersby Max Melcher on 26.01.2012 at 22:26

Ever wondered what FAST for SharePoint (FS4SP) version is currently installed? Ever checked if every server in the search cluster has the same version?

Check the version!

The best approach is – open “Program and Features” and check the version there:

With “View installed updates” you can even see if Cumulative Updates have been installed.

Please be aware that not all files are updated after a patch so the versions in other files or tools can be different.

The stale “version.xml”

If you stumble accross the\etc\version.xml (e.g. C:\FASTSearch\etc\version.xml) file you can see the version number – but its not updated even if you install SP1.

FAST for SharePoint versio.xml

Versions (incomplete, to be continued):

FAST For SharePoint Versions/Builds
Version Description
14.0.4763.1000 FAST for SharePoint RTM
14.0.6029.1000 FAST for SharePoint Service Pack 1
14.0.6029.1000 FAST for SharePoint Service Pack 1 with CU June 2011

As you can see there is no version difference between SP1 and CU June 2011.

 

Did I miss a version? Cumulative Updates anyone?

 

 

Update 1 (30.01.2012)

As mentioned by Dan in the comments its better to directly check Programs and Features. I updated the post, thanks Dan!

Tools: CKSDev – the first tool I always installby Max Melcher on 07.01.2012 at 13:10

If you do SharePoint 2010 development and you haven’t used this plugin for Visual Studio you have really missed a jewel:

CKSDev – Community Kit for SharePoint: Development Tools Edition

Read the whole post

Accessing Central Administration with Google Chromeby Max Melcher on 04.01.2012 at 18:30

When accessing Central Administration with Google Chrome you will get the following:

"This webpage is unavailable"

with the description:

Error 312 (net::ERR_UNSAFE_PORT): Unknown error.

In order to fix that edit the Properties of the Chrome link and append the following to the “target” value:

--explicitly-allowed-ports=42

where 42 is the port for your Central Administration. You can add more ports if you want, in total it should like this:

C:\Users\mmelcher\AppData\Local\Google\Chrome\Application\chrome.exe --explicitly-allowed-ports=42,84,87

 

Still dont like it – ports are not unsafe by default – but at least there is an option to allow it. Dont you think?

 

 

< older posts