Today is the last chance to register for the BIWUG session about SharePoint 2010 – with 90 people registered there are only 10 seats available….
PS I will do the Introduction to SharePoint 2010 …
Occasional rantings about Dynamics CRM/365, Power BI and Azure cloud. Taking the first small steps in machine learning, Python and algorithmic trading
Today is the last chance to register for the BIWUG session about SharePoint 2010 – with 90 people registered there are only 10 seats available….
PS I will do the Introduction to SharePoint 2010 …
I noticed that when I tried to open the SharePoint 2010 Management Shell on my machine I got an error stating:
Exception setting "ThreadOptions": "This property cannot be changed after the Runspace has been opened." At C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\SharePoint.ps1:2 char:48
+ if ($ver.Version.Major -gt 1) {$Host.Runspace. <<<< ThreadOptions = "ReuseThread"} + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyAssignmentException
Thanks to Bill Baer for providing me with a solution in the SharePoint 2010 forums –installing Update KB968930 which contains the Windows Management Framework Core package fixed the error.
The SharePoint 2010 Client Object Model feature is definitely in my top 10 list of SharePoint developer enhancements. It basically provides an abstraction layer so that client apps can interact with SharePoint – there are basically 3 flavors of Client Object Models:
These 3 client models all talk with SharePoint through the client.svc WCF service and all provide complete access to SharePoint artifacts such as site collections, sites, lists, items, files, folders, webparts, security, content types, etc …
If you need to retrieve data you will typically have 3 steps you need to perform:
There is a great series of blog postings from Steve Peschka about practical use of the Client OM:
This is something which will probably bite you in the **s, when you start developing against SharePoint 2010. Don't forget to change the “Platform target” to x64 or AnyCPU
SharePoint 2010 only support 64-bit OS so your apps should do the same. So if you don't change it you will see some strange errors – even something as simple as creating a new SPSite object will throw an error stating:
"The Web application at http://intranet.contoso.com could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application."
So the error message is not very helpfull in this case ...I’m using VS2010 Beta2 on Windows Server 2008 R2 within VMWare Workstation and noticed that some parts of Visual Studio were not rendering or rendered in the wrong location – see for example the “New project dialog” which seemed to be missing some stuff.
This KB provided the solution for these issues – Disable SVGA drivers installed with VMWare Tools on Windows 7 and Windows 2008 R2…
I finished installing my new SharePoint Server 2010 Dev box a couple of weeks ago … and forgot to publish this post. So here it goes. Installing a SharePoint Server 2010 is not that difficult since there is a lot of guidance out there. It’s really amazing how detailed the documentation is – especially since we are only at Beta 2. So what documentation did I use:
So here’s my software configuration:
All the above prerequisites are the same for SharePoint Server 2010 and SharePoint Foundation 2010 (except for the ADOMD.NET which is used for Excel Services and PerformancePoint Services – thanks Spence for the clarification). So if you plan to create both – this is the moment to create a snapshot. Next just follow the steps as outlined in Deploy a single server with SQL Server (SharePoint 2010)
On to the installation of language packs – I definitely want to check out the new MUI experience. For documentation take a look at Deploy language packs (SharePoint Server 2010) – same applies as for SharePoint Server 2007 - you must first install the SharePoint Foundation 2010 language packs before you install the SharePoint Server 2010 language packs. However I did not see the step with “On the Modify Server Farm Settings page, click Do not disconnect from this server farm, and then click Next.”
Afterwards I installed Visual Studio 2010 beta 2 as well as the Visual Studio 2010 SDK – this is something which you should probably install before installing SharePoint because the first time everything froze during install and I had to restart.
PS I’m using a Dell Precision M4400 with 8 GB RAM and SSD hard disk to run this stuff … works like a charm.
The Developer Dashboard is a great feature for developers in SharePoint 2010 which enables us to troubleshoot and debug SharePoint pages – take a look at Using the Developer Dashboard in SharePoint 2010 for some great info.
So you can activate the Developer Dashboard in 3 ways:
$snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}
if ($snapin -eq $null)
{
Write-Host "Loading Microsoft SharePoint Powershell Snapin"
Add-PSSnapin "Microsoft.SharePoint.Powershell"
}
$dash = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$dash.DisplayLevel = 'OnDemand';
$dash.TraceEnabled = $true;
$dash.Update()
SPWebService.ContentService.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.Off;
SPWebService.ContentService.DeveloperDashboardSettings.Update();
It is considered best practice to create a central document library with all of the document templates you are using in your different SharePoint content types in SharePoint Server 2007. This way you can easily update your document template without the need to redeploy or change your SharePoint content type. Unfortunately this caused problems with Office which did not seem to be able to find the centrally located template. Fortunately installing Office 2003 Service Pack 3 fixed the problem.
I just converted a Hyper-V image back to a VMDK to use it in VMWare Workstation using StarWind V2V Convertor. Works like a charm and it is free …
I will be teaching the SharePoint 2010 Partner Ignite training for Developers from December 14th to December 16th. Topics I will be covering:
• SharePoint 2010 Developer Roadmap
• SharePoint Development with Visual Studio 10
• SharePoint UI Advancements
• Designing Lists and Schemas
• LINQ to SharePoint
• Client Object Model
• SharePoint 2010 Workflow
• The SharePoint 2010 Services Architecture
• External Data in SharePoint (BCS)
• Enterprise Content Management (ECM)
• Extending Search
• BI Solutions
This is a Classroom Training session for Microsoft Partners. You can subscribe for this event if you are as an individual associated to a Company registered in the Microsoft Partner Program. Go to the Phttps://training.partner.microsoft.com/learning/app/management/LMS_ActDetails.aspx?UserMode=0&ActivityId=559841artner Learning Center to register
BIWUG is back with our first session about SharePoint 2010. Our next session is the 17th of december in the new Ordina offices in Mechelen. We have a great line up amongst which 3 Belgian SharePoint MVPs presenting. Here’s the agenda:
Please register on the BIWUG site.
To get up to speed with the latest version of SharePoint Server 2007 (English version) including the Dutch language pack you should follow this installation order:
Afterwards you need to start the SharePoint Configuration Wizard. It will probably ask you to run the Wizard a couple of times but you can cancel this and run the wizard after installing all the binaries.
PS I recommend going 64-bit for fresh installs of SharePoint Server 2007 given the fact that SharePoint Server 2010 will be x64 only …
Yep, Office 2010, SharePoint Server 2010, Project 2010, Visio 2010, Office Web Apps for businesses and Office Mobile 2010 – are all available for download from this start location - microsoft.com/2010 – for direct downloads:
MSDN subscribers already got their hands on the downloads a couple of days ago.
When trying to install Visual Studio 2008 on a development SharePoint box yesterday, I got an error stating that the .NET 3.5 framework could not be installed - "Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603". But apparently this seems to be a very general error message - luckily I found out this post from Aaron Stebner - How to locate the cause of error 1603 in a verbose MSI log file - which showed me that there was an error when trying to install .Net 3.0 SP1 - apparently .NET 3.5 will install this first.
Next, I needed to check if there were some problems with .NET 3.0 - again Aaron Stebner to the rescue who has built a .NET framework Setup Verification Tool. Unfortunately this did not provide a lot of extra information - everything seemed OK.
Next my quest lead me to this post - Steps I use to diagnose .NET Framework 3.0 installation failures related to the ServiceModelReg.exe custom action and indeed in the application event logs there was an error regarding WCF. The suggested workaround about disabling the IISAdmin service(uninstalling IIS was not an option - since this is a complete sharepoint dev box and I did not want to rebuild it) did not work.
But the last tip did work - installing .NET 3.5 SP1 instead of .NET 3.5. : "The .NET Framework 3.5 SP1 installs the .NET Framework 3.0 SP2 as a prerequisite behind the scenes. The .NET Framework 3.0 SP2 setup is configured to allow installation to complete even if the ServiceModelReg custom action fails. That means that you won't see the errors described in this blog post if you install the .NET Framework 3.5 SP1 on your system."
A while ago – I got this interesting error when trying to add workitems in Visual Studio 2008 - “Could not load type Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemTypeDeniedOrNotExist"Exception from assembly Microsoft.TeamFoundation.WorkItemTracking.Client …”
Apparently I broke my Visual Studio 2008 by installing Team Explorer and Visual Studio 2008 SP1 in the wrong order – see Visual Studio 2008 with TFS Explorer broken with SP1 – reinstalling SP1 did the trick.
In InfoPath, you can use a control called “File attachments” – this might be interesting to use when you want to allow a user to add files to a filled in InfoPath form. But beware when you store these file within an InfoPath form they will be stored as Base64 encoded strings within the InfoPath form. This causes the included files not to be crawled by standard SharePoint search.
Here’s some sample code to extract these attachments and make them crawleable – InfoPath 2007 – Extracting those pesky binary attachments
SharePoint Server 2010 supports the notion of Enterprise Content Types and Content Type syndication.
This concept allows for consistent content type schema’s across SharePoint over multiple site collections. Enterprise Content Types are basically content types which are published from a central Site Content Type gallery -called the Content Type Hub - to content type galleries on other site collections (even on other web applications or across farms).
This is implemented using a Managed Metadata Service Application. If you are new to the concept of Service Applications in SharePoint 2010 - take a look at these articles - SharePoint 2010: Service Applications Part One: Model Overview and The New Service Application Architecture in SharePoint 2010.
In the configuration options for the Managed Metadata Service you can specify a certain site collection to act as a central repository of content types. This central repository is called the Content Type hub. Other site collection can then consume the content types from this content type hub. There is a maximum of 1 hub per Managed Metadata Application Service but it is possible to create multiple Managed Metadata Applications each with a corresponding site collection hub.
For content types which you define on the site collection content type hub - you get an extra configuration option - Manage publishing for this content type.
Here you can publish this content type to other site collections. You can also decide to unpublish a content type or republish it if you have made changes to the content type.
In the background this is actually accomplished using the Content Type Subscriber SharePoint Timer Job.
If you go to Site Settings on a top level site of a site collection level which does not act as a content type hub - you will notice an entry called Content Type Publishing where you get an overview of Enterprise Content Types you can consume as well as the Managed Metadata Service Application from which you consume them. The consumed content types will be marked as read-only. You will see in the screenshot that it is possible to define multiple managed metadata service applications and thus also multiple content type hubs.
Make sure that you design this carefully since it is not possible to change the content type hub location afterwards on the Managed Metadata Service application
I will be publishing a number of postings about Document Management improvements in SharePoint 2010 in the coming weeks – here’s an outline – to get your appetite going:
The SharePoint List Features Framework is an open source project driven by RealDolmen which will allow you to create features at SharePoint list level. Those familiar to SharePoint probably know that the SharePoint features framework provides a pluggable mechanism for adding or modifying functionality at site level, site collection level, web application or farm level. The SharePoint List Features Framework extends this functionality by providing a mechanism to add features for one specific document library or list within a SharePoint site. For more information check out the new Codeplex site - http://listfeatures.codeplex.com/ .
The current build is targeted at SharePoint 2007 but we will be providing an update shortly after the release of the 2010 beta release.
Again congrats to Tom for building this great extension …
Due to circumstances the BIWUG session of the 19th of november is cancelled – the next BIWUG session will be on the 17th of december.
With all the buzz about SharePoint 2010, you might forget that there are still are quite a lot SharePoint 2007 deployments out there. Here are some interesting links I recently picked up with regards to SharePoint 2007:
Update: I just found this excellent training video – Module 10: Creating Dialogs and Ribbon Controls for SharePoint 2010. Would have saved us some trouble if we saw it beforehand.
We had a blast today at the SharePoint Ignite training as Koen already blogged in– Howto: Add a button to the ribbon in SharePoint. Fortunately Wouter (the trainer at the Ignite training) provided excellent background info and put us on the right track to get a working button.
I’m not going to elaborate about the exact syntax for adding buttons to the Ribbon – since this might change from Tech Preview to Beta2 but would like to provide some additional background info about how the new Ribbon works in SharePoint 2010:
Updated 5/11/2009 – added some addditional links
SharePoint Developer – General info
SharePoint Developer – Specific topics
Background info
Some thinks I just picked up from Twitter:
Something which got stuck in my mailbox – BIWUG – Interview user groups TechDays Belux 2009.
Open command prompt and use the following commands
The second command creates a new pagefile.sys on d: drive with an initial size of 2,5 GB and a maximumsize of 10,24 GB
Afterwards – reboot.
Source: http://blog.mpecsinc.ca/2008/04/server-core-move-that-swappage-file-wmi.html
5 in a row… yes my title as MVP Windows SharePoint Services is renewed again. Thanks to everyone who in one way or another contributed to my (re)nomination.
Things you can expect in the coming months:
Thanks again for all the support.
Update: description added for the OCS session
BIWUG (Belux Information Worker User Group) is back with another series of sessions about information worker productivity. Our next session is on the 15th of october.
Please register on the BIWUG site. I would also like to thanks Combell for providing the location - Combell - Skaldenstraat 121 - 9042 Gent.
You should also bookmark these dates in your calendar – the 19th of november and the 17th of december. You can expect some SharePoint 2010 sessions on the agenda by then …
Today my Windows XP showed me a very unwelcome BSOD… booting in safe mode, last known configuration, nothing helped. Unfortunately I still had some files on the machine which I definitely needed to recover – Hirens Boot CD to the rescue – amazing tool… definitely a lifesaver.
Amazing the things you can do with Excel – check out -http://www.contextures.com/xladvfilter01.html
Microsoft Dynamics CRM is increasingly becoming an application platform for decidedly non-marketing uses. In this way it is moving away from it’s core platform functionality – Customer Relationship Management. Microsoft likes to talk about xRM applications (check out Developing ISV applications using Microsoft Dynamics CRM ) which are basically line of business (LOB) applications that use the Dynamics CRM database, extend the basic CRM web interface and add in extra logic using CRM workflows.
While Dynamics CRM and Microsoft SharePoint are definitely complimentary platforms, this evolution allows you to probably build solutions on top of both SharePoint and MS CRM. Think about the following scenario’s:
You can probably start from both SharePoint and CRM as a foundation and from there on build in the required functionality for your solution. Interesting choices … but who is making this choice?
From a development perspective you will also see some similarities.
Dynamics CRM | SharePoint | |
Encapsulate data | CRM entities | Content Types |
Adding business logic | Plug in framework | Event handlers |
Workflow development | Builds upon Workflow Foundation | Builds upon Workflow Foundation |
User interface extensions | Embedded IFrames within CRM Forms | Web Parts and SharePoint application pages |
Related links:
After enabling Kerberos on our SharePoint Server 2007 acceptance environment I suddenly could not access the environment anymore. The only thing I got was an error stating “Bad Request – header field too long”. Since changing the authentication method to Kerberos was the only change it had to be related with this. Apparently the solution was making changes both on the client and the server level:
Related links:
There are currently 2 PDF iFilters available for 64-bit SharePoint Server setups:
So basically you have a choice free but slower …
PS Foxit PDF IFilter can be used for free on desktop environment. However, users need to purchase licenses when they use Foxit PDF IFilter on server environments -http://www.foxitsoftware.com/pdf/ifilter/priceinfo.html
Did you ever wonder why on some SharePoint sites you will see these rather limited usage statistics page (depicted below) when you click on Site Usage Reports reports in the Site Settings page
While on other SharePoint sites you will get quite a lot more information in graphical format?
If you have SharePoint Server installed you will be able to see the extensive statistics when you activate Office SharePoint Server Standard Site features or Office SharePoint Server Enterprise Site features. The feature responsible for updating the link is a CustomAction feature called AnalyticsLinks (56DD7FE7-A155-4283-B5E6-6147560601EE).
I just finished a number of SharePoint governance workshops and so I wanted to share a number of thoughts on the subject.
1. The terms SharePoint governance and best practices are hugely overhyped.
I think this quote from Governance Man – has fallen into my trap ;-) sums it up quite nicely:
I have had a couple of experiences now, where I have been called in by clients who have the typical SharePoint chaos. Things have gotten out of hand and as a result, key stakeholders started to lose faith, and the project team really felt the pressure from the powers to be. There were strong undercurrents of desperation to get things sorted, like… yesterday. Under these circumstances, they asked for help on “governance”. They needed “governance”, they must have “governance” and they spoke about governance as if it was something that a pizza driver can deliver to their door (and if it was not there in 30 minutes, it was free).
2. SharePoint is not a silver bullet and if you use it wrongly no governance plan can save you.
Project managers which are assigned the task of managing a project implementation which uses SharePoint will typically ask questions like “What do you mean SharePoint is not a BPM platform?”, or “How do I integrate SAP and SharePoint?” or “How do I do contract management in SharePoint?”. As you see the questions can be quite diverse. And the problem is, that the are answers will be quite diverse as well. There are a lot of design decisions you need to make - all with certain tradeoffs. You can start with out-of-the-box, add a layer of customization or even proceed to some serious SharePoint development. And then there is a huge amount of third party tools out there.
SharePoint is not targetted at a specific vertical or horizontal and if your company’s strategy is to always choose for best of breed and is able to support an enormous variety of platforms and applications – SharePoint is probably not a good solution. If your business really needs a 99% percent match for all of their requirements and can’t live with trade-offs – there is no other choice then greenfield development.
SharePoint is all about reuse and platform capabilities. Aim at leveraging the out-of-the-box functionality and when there is not match with the requirements try talking about the processes which created the requirement in the first place.
3. When talking about SharePoint governance and best practices make sure that your audience has a basic (to intermediate) understanding of SharePoint fundamentals
There is a lot of best practices regarding SharePoint infrastructure setup on TechNet and MSDN. So you can always point to those as a reference. It is however necessary that people understand concepts such as WFE’s, SharePoint web applications, site collections, etc … It is not that because you know SQL Server inside out that you also understand SharePoint inside out (allthough a thorough understanding of SQL is definitely a good thing). You really need adequate resources within your company which are sufficiently trained to support a SharePoint implementation.
4. Yes, … you will probably need some third party tools
People are always amazed by the fact that they will actually need some third party tools to make SharePoint meet the requirements of their users. Also when you look at SharePoint from a manageability and operations standpoint you will notice that there are some gaps that are filled in with third party tools (or other Microsoft products) – some questions you should probably ask yourself:
5. Keep the organizational culture in mind when thinking about governance
One of the best postings I read about this is Make SharePoint governance plans plain and simple which talks about companies which are considered icons and examples within their industry (or even accross industries). In his posting he translated some internal guidelines from PCL Construction – called Pool’s rules into relevant SharePoint specific statements – here are my 2 favourites:
And on that bombshell :-) …
Related postings:
A new release of the SharePoint administration kit is now available – some very cool new stuff in there:
Downloads:
I already talked about why some people don't like SharePoint. Now let's talk about why I like it:
One of the things I found out when using Spacesniffer was that there existed a big hidden file on my Windows Server 2008 system drive called hiberfil.sys. Apparently when you hibernate your computer, Windows saves the contents of the system's memory to the hiberfil.sys file. As a result, the size of the file is as big as the amount of physical memory present. Since I allocated 6 GB RAM to my virtual Windows Server 2008 – the file was a whopping 6GB big ….
Now to remove it – open command prompt (remember to use the run as administrator option) and type powercfg.exe /h off.
For some background info check out KB920730 – How to disable and re-enable hibernation on a computer that is running Windows Vista.
Virtual disks seem to have a tendency to fill up faster then expected sometimes. So today I found myself without disk space on my system disk of one of my virtual machines. Since I was not really sure what was occupying so much space I searched the web for some analysis tool and I downloaded Spacesniffer – this is definitely the coolest little utility I have seen for quite a while…and it works like a charm even on Windows Server 2008. Completely free…
If you plan to start writing workflows using Workflow Foundation 3.5 (or 3.0 for that matter) definitely take a look at the following links. There are quite a few architectural changes in Workflow Foundation 4.0 so beware: