Wednesday 7 December 2011

Finding files ( SharePoint migration )

Scripted migration means logs full of errors, and sometimes the meaningful stuff is on a line or 2 above:

awk "{lines[NR] = $0} /ps1:45 char:37/ {print lines [NR-7]} {delete lines[NR-7]}" imp2


This handy little awk line gets the line 7 lines above the string you are looking for ( in this case it’s ps1:45 char:37


another way is to use grep –b 3 searchedstring inputfile.txt


which gets all 3 lines before the string, and –a will get the lines after

Thursday 1 December 2011

TF250008: This SharePoint site is not currently associated with a team project in Team Foundation Server

When you get this nasty message in the SharePoint collection of the project.

You get loads of these square error boxes all over the page.

tfserror1

tfs2

Anyway the fix for it is to connect to the SharePoint collection to the TFS project.

Follow the instructions here:

http://msdn.microsoft.com/en-us/library/dd386320(VS.100).aspx

When the instructions say:

To add a SharePoint site as a portal to an existing team project
  1. In Team Explorer, right-click the name of the project, point to Team Project Settings, and then click Portal Settings.

”Team Explorer” Is the window in Visual Studio when you connect to TFS.

Print previous line

Print previous line

Ok This was a test for a plugin for Chrome called AddThis to publish links,
No bad.