Life, the universe and whatever


SUGUK meetings for January 2010

Posted in Community, SharePoint by Matt on January 12, 2010
Tags: , ,

The early signs are good that the new regional organisational structure of the SharePoint User Group UK (SUGUK) is working in terms of getting more members involved in regular meetings.

This month there are four meetings confirmed:

Thursday 14th January 2010 – Nottingham

The next Nottingham event will be a Designer/Branding special! Penny Coventry will be joining us to do a SharePoint Designer 2007/2010 session, covering what’s possible in 07, and what’s new in 2010!!  We will then have some ‘tales from the trenches’ where a few individuals will be showing off their real project examples of SharePoint branding/theming with discussion around what’s possible, and the trials and tribulations along the way!

The usual fayre of pizzas, drinks and of course SharePint in the Broad Oak pub, Strelley Village.  Everyone welcome, whatever your background or experience. For further details and sign up, check out the meeting post.

Wednesday 27th January 2010 – Bristol

The south user group will be meeting in Bristol at 6:30pm on 27th Jan 2010.  HP Labs have kindly allowed us to use their auditorium and are going to be providing pizzas! To attend please post a response to the meeting post giving names of attendees by Monday 25th January.  Directions to the venue can be found here, and there is plenty of free parking.

The agenda is below and there is still a 15 minute "new speaker" slot available so if you would like to take this please get in touch with Ian Woodgate – this is a great chance for you to tell us all about some cool stuff you have been doing in SharePoint!

6:30pm Welcome

6:40 – 7:20pm Andy Ginn: An overview of HP white papers and tools organisations can use when adopting SharePoint Andy introduces some useful tools for sizing and configuration of SharePoint environments, and reviews research from HP labs looking at the performance of SharePoint on Windows Server 2003/SQL Server 2005 versus Windows Server 2008/SQL Server 2008 – come along and see if the results are as you would expect! Best practice guidance on the use of virtualised solutions is also reviewed.

7:20 – 7:35pm New Speaker Slot

Contact Ian Woodgate if you’re interested!

7:35 – 8pm Break, pizzas

8 – 9pm Mark Macrae: Utilising SQL Reporting Services in Integrated Mode for SharePoint and Empowering Information Managers with Report Builder In this session Mark will be focussing on Reporting Services – a ‘free’ but often forgotten Business Intelligence tool which has much improved with SQL 2008. Mark will discuss the steps required to install and configure SSRS in SharePoint Integrated Mode, complete with the much improved Report Builder 2.0. He will then demonstrate how Report Builder can be used by Power Users to quickly build reports, manage and version them in SharePoint, approve and publish to an audience. Finally, Mark will examine the improvements which SharePoint 2010, SQL 2008 R2 and Report Builder 3 will offer when they are released.

Thursday 28th January 2010 – Newcastle

We kick off the new year with a very informative session from Steve Smith MVP on some of the new highlights and features of SharePoint 2010, co-hosted by John Timney. Steve will add his own insight to a well balanced presentation on the replacement for the product we have all come to know, specifically highlighting the new metadata management model and the new records management and records routing features of 2010, the Ribbon, Office integration, migration options, architecture and new facets of the product likely to keep you employed well into the next few years. The session will be an open forum to allow participants to ask questions as the session progresses

Everyone welcome, whatever your background or experience. For further details and sign up, check out the meeting post.

Thursday 28th January 2010 – London

Kicking off the new year with a meeting hosted by Microsoft at their Cardinal Place, Victoria offices.

Session 1 – An Introduction to SharePoint Designer 2010: Top Ten Great Things to Know – Ben Robb (SharePoint MVP)

SharePoint Designer 2010 is the tool to design powerful no-code solutions and applications in SharePoint 2010. In this session get a broad overview of some of the new capabilities of the tool, from site customisations such as modifying Site Metadata, managing Site Security, or creating Site Content, to building List or Site-based Workflows and connecting to a variety of Data Sources.

Session 2 – Ask the Experts: How and Why Should I Migrate to 2010?

The early signs are that Microsoft have put even more thought and planning into migrating and upgrading to SharePoint 2010 but the reality is it’s an enterprise level platform and a non-trivial undertaking. So what are the benefits to the business? Why would you upgrade (or why wouldn’t you)? What can you be doing now to minimise the impact? We have assembled a panel of technical and non-technical SharePoint experts who have all had good exposure to the beta products and are all looking forward to discussing and debating your questions.

Microsoft will very kindly be providing refreshments and half time pizza.  For further details and to sign up check out the meeting post. Plan to arrive from 18:00 for a 18:30 sharp start and SharePint at a local watering hole from 21:00.

I’m planning to get along to 3 of these events so if you can make it along to one or more then why not show your support, learn something new and even go for SharePint.  See you there.

Technorati Tags: ,,

Search index configuration for FBA MOSS

Posted in Development, SharePoint by Matt on January 11, 2010
Tags: , , , ,

I am working with a client on a public facing internet site that includes a public area for unauthenticated users and a ‘members’ area for which there is already a bespoke SQL database holding all members’ credentials (including clear text passwords!)  Given the tight timeframe and the amount of bespoke development required for other areas of the site I decided that it would be best to use the standard .NET Framework forms based authentication (FBA).  The site owners manually process new member applications and maintain the existing database so we will create an additional administration screen to maintain the FBA database via SharePoint.  The site owners would use Windows authentication (NTLM) via an ’authoring.companyname.co.uk’ URL and members will use FBA via an ’internal.companyname.co.uk’ URL.

The requirement

At least two document libraries will be included in the members area of the site but they will not be directly exposed to members.  Instead, each library will have a dedicated page on the site where members can browse through all the documents in the library or submit a basic search.  The documents will be displayed in a formatted table (grid) for both browsing and search results.

The solution

As the CSS formatting of the page was so bespoke I decided that my starting point would be a clone of a WCM page from elsewhere on the site to which I would add an ASP.NET GridView control.  When a user first visits the page it displays all the documents in the related document library by binding the grid (called searchResultsTable) to an SPDataSource object that has had the List property set to reference the document library.

bind to SPDataSource

figure 1 – binding to an SPDataSource

That was the easy part.  To perform the search I added a text box and an image button as per the following screen shot.

formatted results page

figure 2 – formatted results with paging

When the user submits a search the grid is bound to the results of an SPQuery that has been loaded into a DataTable.  The important thing to note here is that the AuthenticationType property of the SPQuery object must be correctly set depending on whether the user is NTLM or FBA authenticated as per the highlighted section in the code below.

SPQuery code

figure 3 – binding to an SPQuery filled DataTable

The problem

Before any of this will work the search indexer has to be configured to index the FBA version of the site.  The NTML site is automatically included in the default search content source (typically named ‘Local Office SharePoint Server sites’) and therefore any documents stored anywhere in the site are automatically indexed.  However, FBA authenticated users trying to search the site don’t see anything in that index as they are accessing the site through a separate URL.  I therefore added a search content source that I dedicated to indexing the site via the FBA URL.

FBA content source

figure 4 – adding a dedicated FBA search content source

As per the code in figure 3 the query passed into the SPQuery object via the QueryText property specifies the name of the search scope to be queried similar to this (where x, y, z are the fields to return and scope_name is the name of the search scope);

SELECT x, y, z FROM Scope() WHERE "scope"=’scope_name’

I therefore needed to set up a search scope for the document library but ensure it worked from both the NTLM and FBA sites.

NTLM & FBA search scope

figure 5 – document library search scope for NTLM & FBA

The final piece of the puzzle is ensuring that the search indexer has access to the FBA site.  As per the following screen shot, on a standard SharePoint Shared Service Provider the default content access account (used for indexing site content) is an NTLM account.

image

figure 6 – default content access account

Therefore the default content access account cannot create an index that FBA users can query.  I tried to add a crawl rule that would use a specific FBA account to crawl the FBA site.

add crawl rule 

figure 7 – add a crawl rule

The FBA site is currently using the default SharePoint FBA log in page which unauthenticated users are automatically redirected to when they first attempt to access an area of the site that requires authentication.  I entered the URL of the log in page (http://internal.companyname.co.uk/_layouts/login.aspx) in the Form URL field (under the Specify Authentication section) but when I clicked the Enter Credentials button I got a 403 error.

Enter Credentials 403 error

figure 8 – 403 error when entering FBA credentials

I noticed that every time a user is redirected to the log in page a ‘ReturnUrl’ query string is appended to the URL something like this:

http://internal.companyname.co.uk/_layouts/login.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252f&Source=%2f

When I used this extended URL on the Add Crawl Rule page and and clicked the Enter Credentials button the site log in page was correctly displayed.  I entered the credentials of the FBA search content access account and was redirected to the default FBA site page.  The following dialog popped up asking if the log in had succeeded.

image

figure 9 – successful log in with FBA credentials

After clicking OK I was returned to the Add Crawl Rule page and a message (highlighted below) indicated that the credentials had been accepted.

apparently correct

figure 10 – apparently correct FBA credentials

However, when I clicked OK I got an error telling me the credentials had either not been entered or had not been accepted?!

credentials not accepted!

figure 11 – credentials not accepted?!

 

This got very frustrating.  I couldn’t find anything useful in my excellent reference book Inside the Index and Search Engines: Microsoft Office SharePoint Server 2007 because it is nearly 2 years old and there have been some significant advances since then such as the infrastructure updates.  Just like my book, the most relevant information I got from searches was about using the addrule.exe command line tool which didn’t seem right for an installation up-to-date with service packs and hotfixes. 

The fix

One blog post I found explaining how to add a crawl rule caught my attention because of the log in page URL that was specified.  It was similar to the URL I had used but the ‘ReturnUrl’ query string parameter was notably shorter (just ‘%2f’) so I tried creating the crawl rule again using the shortened URL:

http://internal.companyname.co.uk/_layouts/login.aspx?ReturnUrl=%2f

This time everything worked and the crawl rule was successfully added!

crawl rule added

figure 12 – crawl rule added

With the crawl rule in place the indexer had FBA credentials and details of the log in page but the FBA account still needs to be given permission to read all the content in the FBA site.  This is accomplished in exactly the same way that the default access account is granted rights to browse an entire (NTLM) site, by means of a policy.  From the Application tab in Central Administration click on the Policy for Web application link.

image

figure 13 – Policy for Web application

On the Policy for Web application page click the Add Users button and ensure that the appropriate Web Application is selected.  Select the zone that the FBA site is running under then click the Next button.  Then enter the FBA user account and check the “Full Read – Has full read-only access” check box before clicking the Finish button.

And finally I could run a full crawl against the FBA site content source…

start a full crawl

figure 14 – start a full crawl of the FBA site

… and watch the index grow!

finally an FBA index!

figure 15 – finally the FBA site is indexed!

VSeWSS v1.3 and source control revisited

Posted in Development, SharePoint by Matt on December 30, 2009
Tags: , , ,

Back in May I blogged about my experiences of using the latest version of the Visual Studio extensions for Windows SharePoint Services (VSeWSS).  Having had confirmation from Paul Andrew that there would be a supported upgrade path for solutions developed using the extensions to Visual Studio 2010 I have exclusively used them on all projects for all my clients since.

Like most other developers in the SharePoint space I am really looking forward to building solutions using Visual Studio 2010 with all the built in support for SharePoint.  However, that is exclusively for SharePoint 2010 onwards with no support for previous versions so it won’t aid my current projects and clients right now.  There haven’t been any updates since my blog post in May and despite talk about possible and desired updates I’m not sure this is where the focus will be now.

All that said, having developed exclusively with the extensions for over 6 months now I am happy to report that I only have one real issue which is to do with usability.  As per my previous post the recommended approach is to include the ‘pkg’ subfolder in your Visual Studio project and therefore source control and also the WSP and .bat files created in the output (bin) folder.  Visual Studio will fail with an error if  the WSP and .bat files are not checked out for edit when you attempt to deploy your solution which could be a real pain in team development and/or continual/automated build environments.  Also, the feature.xml file in the ‘pkg’ subfolder will be automatically checked out during the deploy process even though no changes will be made which is inconvenient at best but could also be a real issue if someone else in the team has it checked out.

I’ve also experienced an intermittent and inconsistent (major) issue with Site Definition solutions where the ‘pkg’ subfolder is included in source control.  Even with the entire solution checked out for edit, during the deployment process the ElementManifest node in the feature.xml file gets duplicated causing the deployment to fail and the solution to become corrupted.  When this happens I have found that excluding the ‘pkg’ subfolder from the Visual Studio solution and therefore source control is the only way to recover.

So overall, my goal of finding a simplified and consistent supported means of developing and deploying SharePoint solutions hasn’t quite been achieved.  My overriding requirement is for developers who are not necessarily fully aware of how SharePoint works to be able to understand and maintain the solutions.  I wonder though if that will always be a compromise even with the more advanced integration of SharePoint support into Visual Studio 2010?

SUGUK November meeting review

Posted in Community, SharePoint by Matt on November 26, 2009
Tags: , , ,

Last night was the first SharePoint User Group UK (SUGUK) meeting that I have taken responsibility for organising since taking on the role of a regional organiser.  We had a great  turnout of over 100 members and I was very well supported by several SharePoint friends including former organiser and group co-founder Nick Swan, Paul Hunt, Simon Doy and Chris Forbes (Scotland organiser) to name but a few. 

If the standard of presenters and presentations remains as high as last night then my job is going to be a breeze!  First up we had Martin Hatch from Content and Code presenting on building an accessible SharePoint system.  Now I know Martin from a mutual client we had a few years ago so I know that technically the guy is pretty sharp.  What we saw last night is that Martin has a very confident and engaging manner with the audience because he knows his subject inside out and backwards.  What I liked most about the presentation was that although the subject matter was accessibility (I learned a lot about that I never new!) all the techniques were demonstrated to be applicable for more general application which I wasn’t expecting.  (The slides and demo files from Martin’s presentation are all downloadable from his blog post).

Our second speaker was Chris O’Brien, independent SharePoint consultant.  Chris is a very relaxed and accomplished speaker and he gave us an excellent tour of Enterprise Content Management (ECM) enhancements in SharePoint 2010 demonstrating some Visual Studio 2010 enhancements for good measure.  Special thanks should go to Chris as he is a father of 8 week old twin boys and is preparing for best man duties this coming Saturday all on top of his normal hectic schedule!

Chris was one of several SharePoint MVPs in attendance and clearly from the questions and discussions during the evening there was a lot of experience in the room.  In all a great evening and even a quick SharePint in the local pub afterwards!

PCG at the Houses of Parliament

Posted in Community, Freelancing by Matt on November 24, 2009
Tags: , , ,

Today was National Freelancers Day and I was fortunate enough to be invited to a reception held at the Houses of Parliament.  I have never been before and so arrived an hour early in order to have as much of a poke around as I could.  It truly is an incredible place steeped in history and I could have easily spent 2 hours or more perusing the paintings and architecture on display.

The reception itself was enlightening, interesting and enjoyable and I had the pleasure of meeting and talking with the Chairman of the Professional Contractors Group, Chris Bryce.  Chris is a contractor of some 17 years and is articulate, well reasoned and very passionate about getting a better deal from the UK Government for freelance and contract workers.

MPs from all three of the main political parties addressed the reception and I was genuinely impressed with all of them.  It’s reassuring to hear that there is an agenda within all the major parties and the shortcomings and inadequacies of the current legislation (such as IR35) are at least acknowledged.

So in all a useful and very memorable day indeed for me.

November SharePoint User Group meeting in London

Posted in Community, SharePoint by Matt on November 12, 2009
Tags: , ,

As per my previous post I am now more involved with the SharePoint User Group UK (SUGUK) helping to organise meetings in London and the South East.  I am pleased to confirm that the first meeting under my watch is on Wednesday 25th November hosted by Microsoft at their offices in Cardinal Place, Victoria, London.

We have two great speakers, both of whom I know personally and the session details are as follows;

Session 1 – Developing an Accessible SharePoint System – Martin Hatch

  • What is accessibility?
  • Presenting “SAS”: our unique SharePoint Accessibility Solution presenting the functionality that is delivered by the platform.
  • Challenges and major hurdles
  • Technical approach
    • AAA XHTML rendering
    • Accessible Content Management
    • Web Part Editing
    • List views, toolbars and menus
    • Back-end administration Roadmap
  • Questions

Session 2 – ECM Enhancements in SharePoint 2010 – Chris O’Brien

Enterprise Content Management is SharePoint’s bedrock. The 2010 release adds significant new capabilities in all ECM pillars (Document Management, Web Content Management and Records Management), and Microsoft have addressed some of the top ECM pain points reported by clients in SharePoint 2007. This session looks at the improvements in user experience, scalability and taxonomy, with demos showing how to leverage new features such as Enterprise Content Types, the Managed Metadata field and Content Organizer to better manage your documents and/or pages. Specific enhancements in WCM and RM will also be discussed. This session is a great way to kick-start your awareness of SharePoint 2010, and questions on other aspects of the new version are welcome in the Q & A wrap-up at the end (or the pub!)

For more details and to sign up check out the post on the user group site.

Formula 1 in 2010

Posted in Motorsport, von Trapp by Matt on October 29, 2009
Tags: , , ,

Next year sees some significant changes in Formula 1 with the introduction of a cap on spending for each team for the first time ever.  In theory this will mean a far more even playing field and this has attracted several new teams.

I’m an infrequent race goer for many reasons; it’s expensive and time consuming and I’m lazy!  However next year I have been invited to the Belgian Grand Prix by my good friend Steve and his family (who live near Brussels) and I am arranging a trip for a small group of friends to the Italian Grand Prix.

As I am acting tour operator for the Monza event I have been digging around for good information.  So far I have found plenty of ticket touts but this site had some great information including the all important travel to and from the circuit.

Technorati Tags: ,,,

SUGUK coming to a region near you!

Posted in Community, SharePoint by Matt on September 30, 2009
Tags: , ,

Last month Nick Swan and Steve Smith announced that they were looking for 2 new volunteers to take on the responsibility of organising regular meetings for the SharePoint User Group UK (SUGUK).  I expressed an interest along with several other people and by chance all the applicants were rather nicely and evenly geographically spread around the UK.  It therefore seemed logical to employ the efforts of everyone who had expressed a desire to contribute and create regions for each organiser to take responsibility for.  The new organisers and their respective regions are as follows;

Scotland Chris Forbes
North West Mark Stokes
East Midlands/Yorkshire Mark Macrea
West Midlands Steve Eyton-Jones
South/South West Matt Smith
London Matt Taylor (me!)

The idea is that we will organise and run meetings in our respective regions at a frequency that suits the region and pool our experience, resources and expertise to help each other and the group as a whole.  Matt Smith (South/South West) already has plenty of experience running a user group back in his native New Zealand and Nick and Steve will remain fully committed to supporting us all in our respective regions with their wealth of experience, contacts and knowledge.  I for one think this is a really exciting development that will benefit the group and all of it’s members as a whole and I can’t wait to see how the new set up evolves.

Keep an eye on the website and if you’re not already a registered member then get signed up today and get along to your next local meeting!

SUGUK London meeting – important update

Posted in Community, SharePoint by Matt on August 25, 2009
Tags: , ,

Unfortunately it has transpired that Dux Raymond has been unable to get a UK visa in time for the meeting on Thursday.  The meeting will now be held as a LiveMeeting and the details to join are as follows;

1. Copy this address and paste it into your web browser: http://m1e.net/c?104389617-4SREYxRT0s8Bk%404542352-d/qoCBycm3y1I

2. Copy and paste the required information:

Meeting ID: QWJ4C3

Entry Code: w=TR\/3

Location: http://m1e.net/c?104389617-w502rj2KtcN0.%404542353-pmNhOjDiW0.ho

So if you were planning to attend the meeting at the Microsoft offices at Cardinal Place (Victoria, London) then don’t go, you can watch it from the comfort of anywhere you can get a decent internet connection (Work, home, pub).

Technorati Tags: ,

Refreshingly good customer service – all about perspective?

Posted in Golf, Learning, von Trapp by Matt on August 23, 2009
Tags: , ,

I’m not a believer in the notion that positive things happen to positive people, my belief is that it’s simply a matter of perspective.  I arrived at this conclusion in my early 30’s after years of all-too-often feeling hard done by or badly treated despite the fact that things in m life were more often than not very positive.  However, the tendency has always been for me to get disproportionately upset by certain situations that don’t go my way.

I never had a moment of enlightenment or a flash of inspiration when I suddenly saw the light but, from since I can remember, I have always been driven to do better and to be a better person.  Although I do wish I had worked at making the changes earlier in my life I am very glad that I persevered and don’t suffer the bouts of negativity that can be extremely toxic in all areas of life.

I have recently encountered two separate examples of customer service that have been notable by the positive feeling they have left me with.  The first is a perfect example of my theory of perspective and involves my mobile phone service provider who I won’t name because this is all about positive feeling and their contract and standard procedure conspired to leave me feeling rather badly treated as a paying customer.  Anyway, rather than take the view that said service provider didn’t care about me now that they had me bound to a contract or that I was being persecuted, instead I took the view that I was just a victim of circumstance and with such large companies you have to accept that many of the pricing advantages we enjoy as consumers can only be achieved through economies of scale and it then becomes a challenge to truly treat customers as individuals.  Ultimately, this undoubtedly helped me as I felt the first customer service representative I spoke to (Nicola) genuinely did everything in her power to resolve the situation and leave me satisfied with the outcome.  She herself agreed completely that the best she was able to do for me wasn’t ideal and advised me to talk with her manager (Matt) who, as Nicola had done, made me feel he had gone far beyond the call of duty in resolving the situation.  I could have been left in a very negative state because I didn’t end up with either of the phones I really wanted and a contract with a company I no longer had a loyalty to.  However, although the end result was not what I had initially hoped it would be or felt it should be, I do now have a service that I am satisfied with and was left with an overwhelming feeling that I had been treated very well.

The second example is much more straight forward.  I recently bought an electric golf trolley having played a round with a young lady and admiring how nice her trolley was.  The company, Go Kart, are actually based just 30 miles from me so rather than use their reportedly excellent mail order service I thought I would drop into their offices and pick one up in person (of course this also meant I could drop by the nearby Canterbury Golf Club and play a round on my way back, happy days!)  Having spoken to the guys at Go Kart over the phone beforehand and browsed their excellent website it came as no surprise that they couldn’t do enough for me.  They only have one model of trolley so I made my colour and optional extra choices and paid.  The guy who had served me took me downstairs where he got a new trolley fresh from the assembly room and got the guys to fit the brolly holder I had ordered.  He  showed me how it all fitted together (unbelievably easy), put it in the carry bag and I was away!  Having used it for several rounds I couldn’t recommend the trolley highly enough, the fact that it is such good value and the reviews all mention the customer service are just added bonuses.  The fun yet “serious about customer service” ambience of their website and regularly updated blog is fully realised by their staff in person and that is worth it’s weight in gold in my book.

Getting back to my theory about perspective I feel it’s also worth mentioning an excellent book I was lent by a good golfing (and SharePoint) buddy recently.  Mental Ketchup by Jamie Edwards explains a lot about this concept in a really easy to digest and understand way.  I wouldn’t say he is a polished author but he has a great way of visualising and communicating his thinking and that is very much aligned with my theory.  There’s no rocket science or life changing revelations but reading the book made me realise very few, if any of us think this way “by default” and I for one have to make a conscious decision each time I am faced with a potentially negative situation.

Next Page »