Friday, 30 October 2009

Did I miss a version of SharePoint?

Just tried to edit my Live MySite (in MOSS 2007) suing SPD 2010, got an error…


I’m normally up to speed on SharePoint releases but I think I missed “SharePoint 2009”:




Off to (re)install SPD 2007 ;)

Unable to Import profiles from AD

Finally made time to look at the Tech Preview (renewed excitement after SPC) and have been having issues with the “People” service app.

I can connect to AD and enumerate the OU’s:




But cannot get the profiles imported, looking in the logging (using SMS Trace – a tool I’ve been using for years for log file viewing after being introduced to it by Jeff Tremaine at Microsoft) I find the following error:


10/30/2009 10:22:58.49     w3wp.exe (0x1924)                           0x17E0    SharePoint Portal Server          User Profiles                     7hxs    High        EditDSServer.ButtonOK_Click(): System.ServiceModel.EndpointNotFoundException: Could not connect to http://sp2010tp:5725/ResourceManagementService/MEX. TCP error code 10061: No connection could be made because the target machine actively refused it  ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it     at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)     at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)     --- End of...    4012e7da-e72a-415a-b7a5-e42de6c5299b


I’m still not entirely comfortable with the move to WCF as being more IT Pro than Dev I would rather be able to look in IIS and see what’s going on, would certainly be easier to troubleshoot this particular issue ;)

Anyway, I’ve tried getting the WSDL by accessing the URL in IE, no joy. So I thought I’d check if there is something listening on 5725 (port referenced in error above).

These next steps took me back ;)


Ran: netstat -ano |find /i "listening" and netstat -ano |find /i "established"


Nothing is listening on 5725, no wonder I’m seeing error 10061.


I guess you’re hoping for the solution to appear next…


Sorry, not yet. Unfortunately I haven’t been able to make any progress beyond this point, but will update this post as soon as I have…


I have already:


  • Disabled Windows Firewall
  • Asked my good friend Google


Next I’m off to the Beta forums ;)


Thursday, 29 October 2009

DCOM error 10016 with SharePoint 2010 on Windows Server 2008 R2

This used to happen with MOSS 2007 on Server 2003 too, so I wasn’t that concerned… Usual process of finding the CLSID in the Registry and changing the permissions using the Component services snap-in… Or so I thought…


Here is the error:


Log Name:      System
Source:        Microsoft-Windows-DistributedCOM
Date:          29/10/2009 11:52:52
Event ID:      10016
Task Category: None
Level:         Error
Keywords:      Classic
User:          CORPNET\_SP_Farm
Computer:      SP2010TP.CORPNET.beta
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
to the user CORPNET\_SP_Farm SID (S-1-5-21-1469829728-1532128048-1498870291-1109) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.
Event Xml:
<Event xmlns="">
    <Provider Name="Microsoft-Windows-DistributedCOM" Guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" EventSourceName="DCOM" />
    <EventID Qualifiers="49152">10016</EventID>
    <TimeCreated SystemTime="2009-10-29T11:52:52.000000000Z" />
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Security UserID="S-1-5-21-1469829728-1532128048-1498870291-1101" />
    <Data Name="param1">application-specific</Data>
    <Data Name="param2">Local</Data>
    <Data Name="param3">Activation</Data>
    <Data Name="param4">{61738644-F196-11D0-9953-00C04FD919C1}</Data>
    <Data Name="param5">{61738644-F196-11D0-9953-00C04FD919C1}</Data>
    <Data Name="param6">CORPNET</Data>
    <Data Name="param7">_SP_Farm</Data>
    <Data Name="param8">S-1-5-21-1469829728-1532128048-1498870291-1109</Data>
    <Data Name="param9">LocalHost (Using LRPC)</Data>


I found {61738644-F196-11D0-9953-00C04FD919C1} to be IISWAMREG as I suspected (no harm in verifying the ID in regedit!).


Next, I opened the Component Services Snap-In (StartRun > comexp.msc) and drilled down through Component Services > Computers > My Computer > DCOM Config > IIS WAMREG Admin Service ….


Only to find all options greyed out!!




At first I thought UAC was the culprit so I ran did the “right click >run as administrator” which made no difference…


Thinking it had to be a permissions issue I fired up my old friend Process Monitor (from Sysinternals: and found I didn’t have permission!


Date & Time:    29/10/2009 12:25:35
Event Class:    Registry
Operation:    RegOpenKey
Path:    HKCR\AppID\{61738644-F196-11D0-9953-00C04FD919C1}
TID:    748
Duration:    0.0000322
Desired Access:    Write, Query Value, Enumerate Sub Keys, Write DAC


So back to Regedit to inspect permissions…


Found that as an Administrator I didn’t have full control:




Granted CORPNET\Administrators full control, re-opened the MMC and was able to correct the permissions, to do this:


Open the Component Services Snap-In (StartRun > comexp.msc) and drill down through Component Services > Computers > My Computer > DCOM Config > IIS WAMREG Admin Service


Right click on IIS WAMREG Admin Service and on the Security tab click Edit in the Launch and Activation  Permissions section.

Grant the account referenced in the event log (mine is _SP_Farm) the following permissions:


Allow: Local Launch

Allow: Local Activation




All done ;)


You might as well grant the same rights to the accounts you’re going to use for running Service Apps at this point (or you’ll be back here in a few minutes anyway!).




As Tristan ( points out, if you do this for the WSS_WPG and WSS_ADMIN_WPG groups (local to each SP2010 server) rather than individual user accounts you will accommodate future changes. Thanks Tristan!

Monday, 26 October 2009

#SharePhoto at #SPC09

As you know, I am a big fan of twitter, there was an event organised via Twitter while I was at SPC: a walkabout for photographers, there were a few MSFT guys attending and a couple of conference delegates, good times!

I’m sure these aren’t the best shots taken during the walkabout, but I quite like them :)


Back from SPC09

The SharePoint Conference 2009 was last week in Las Vegas, I was fortunate enough to attend ;)

You may have seen some of my updates if you follow my twitter stream (look for updates tagged with #SPC09).

I met up with several people I’d been engaging with online and had some great conversations while I was there.

There are so many new features and wins in SP2010 that it would take me hundreds of blog posts to cover them all, however, there are a few things that stand out for me…

In no particular order:


  1. Social – loads of excellent functionality to enable connections within an organisation, the “activity feed” and social bookmarking are stand out features, when coupled with the Taxonomy features this gives a rich content management experience. The ability to tag content outside SharePoint is also very powerful (for example, tagging a contact in CRM or a staff member in a HR app, as well as external web content!). The custom sources for Activity Feeds adds value, especially if tied to a structured information system, for example, we could have “Allan Robb has closed a deal with <Company Name> worth £xxx,xxx” sourced from CRM (if he actually put anything in CRM!!!). Tagging drives Tag clouds (which are used everywhere).
  2. Compliance – not necessarily OOTB, but the platform allows far greater scope for delivering compliant solutions. For example:
    • web sites can be created adhering with W3C WCAG 2.0 AA OOTB
    • Records Management – the ability to declare non-document content as records, and in-place record declaration, still no talk (that I’ve seen) of adhering to standards. This means that any content (e.g. a blog post) can be declared as a record.
  3. Distributing working – a much enhanced offline experience (with several options for offline access) coupled with technology advances (such as differential synchronisation – only pushing/pulling changes [not full documents] over the wire) provide a better/faster working environment for IW’s. The ability in the WAC’s (see below) or Office 2010 for multi-party editing will enable real time authoring in a way never seen before. Better mobile device access and SharePoint Workspace Mobile (for Mobile device offline capability).
  4. “ECM for All” – The EMM (Enterprise MetaData Management) provides the ability to have a corporate Taxonomy against which content (all content, not limited to documents) can be classified, this is in addition to Social tagging, basically you now have a Taxonomy (EMM) and Folksonomy (Social bookmarking). I also the content router, this is based on the same principles of the Record Center (in 2007) but is available anywhere, allowing a site owner to define a set of ‘rules’ for content storage location, users then upload content to a ‘drop box’ where it is then routed based on metadata/content-type etc. The meta-data/classification can be used to navigate content – that means on the fly navigation based on the content, not on where it sits or where someone thought it ought to sit!
    The “grouping” of documents into “Document Sets” allow multiple items to be managed as a single entity!
  5. External Lists – using BCS (Business Connectivity Services) to access a LOB system, data can be presented (and managed in) and SharePoint List, this enables rapid a seamless integration. For the IT Pro/Developer it is worth noting that when you define a BCS connection (to SQL or a web service, for example) that BCS creates the CRUD methods for you!
  6. BI/Charting/PerformancePoint – Rich BI is available enabling better decision making, Charting (MSFT acquired/licenced Dundass) is rich a powerful while remaining remarkably easy, reporting on Data inside SharePoint is easy and through the ease of BCS connections reporting on external data is easy too.
  7. Office in a Web Browser – The Office WAC (Web Application Companion) is an Office app in a browser, think Google docs, allowing IW’s to access documents from anywhere and allowing some rich functionality, for example: one demo showed a Visio file with the status of servers in a rack – taking a real time data feed from SCOM via BCS, while this is a geeky example it shows the power and potential of this functionality! 
  8. For The Dev/IT Pro – REST, ATOM, API enhancements, Client OM (ability to call OM from SilverLight/js and Office apps), Remote Blob Storage (ability to store BLOBs outside SQL, inc cloud storage), VS.Net 2010 projects (enhancements for developing and packaging), SPD 2010 (creates WSP not STP), Sandboxed Solutions (partially trusted code, runs in a sand box, admins can define resource thresholds, mainly to support cloud scenarios), BCS (BDC+, now 2-way! creates the CRUD for you!), Lists scales to millions of items (SharePoint protects itself against views (etc) that would cause a slow-down!), LINQ, Media Web Part OOTB (this is a SilverLight WP that streams , yes STREAMS media content), Ribbon is everywhere (except VS!)…

There is over 350 hours of content available to me on the “MySPC” site, so this is a very high level and quick brain dump, I wasn’t able to go to all sessions, not even all the ones I wanted to, so there may be a nugget I have missed… More to follow as I look at the other sessions and get my hands dirty with the TP builds…


Arpan presented a good overview session, his deck is available here: