Thursday, November 26, 2015

Assembly Error in STSADM MigrateUser

Posted in SharePoint, Technical By Doug Allen @ 4/19/2010

During a recent migration, we ran into an issue when attempting to migrate users from one domain to another using stsadm migrateuser.  Hopefully this will help any others that are getting this strange error.  Our environment was a small MOSS 2007 64-bit farm installed with slipstreamed SP2, with the February 2010 cumulative update applied. 

 We were moving from an on-premise to Hosted solution, so this required a new domain and user accounts.  Since the new domain wouldn’t know anything about the old domain’s user accounts, we added the –ignoresidhistory switch.  We ran the following command:

 stsadm –o migrateuser –oldlogin domain\name –newlogin domain\name -ignoresidhistory

and then got this error message:

 Could not load user migrator assembly "Microsoft.SharePoint.Portal, Version=12.0
.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c", class "Microsoft.ShareP
oint.Portal.PortalAccountMigrationManager", referenced in feature "f0deabbb-b0f6

 Our first thought was that something was missing or wrong in the assembly for the class.  The assembly existed in the GAC:

SharePoint Global Assembly Cache


We opened the assembly using Reflector, and we verified that the class existed within the assembly as well:



So now what?  After some testing, we were able to get the command to complete successfully.  The amazing part is how.  We uninstalled (that’s right, uninstalled) the UserMigrator feature using this command:

 stsadm –o  uninstallfeature –name UserMigrator -force

 After this completed, we ran the command again and all was well.  I don’t know why uninstalling the feature makes the component work, but it did.


, ,


Got something to say? Join the discussion »

leave a reply

 [Quick Submit with Ctrl+Enter]

Remember my details
Notify me of followup comments via e-mail


About C5 Insight

We are a Microsoft Gold Certified partner focusing on SharePoint, Microsoft Dynamics CRM and  Learn more about us by visiting our website.

We Wrote the Bible on Microsoft SharePoint and Dynamics CRMBook-Microsoft Dynamics CRM 2011 and SharePoint 2010 Bible

Upcoming Events

Why Upgrade from SharePoint 2010?

12/08/15 @ 2:00 PM ET If your organization is considering a move to SharePoint 2013, then this webinar is for you. We know......

Comparing Salesforce and Dynamics CRM for Sales

12/15/15 @ 1:00 PM ET "Our CRM is so good that our sales team members WANT to use it," said no sales manager ever. Are yo... ...

Microsoft Social Engagement: Improving your Marketing LUCK

12/17/15 @ 1:00 PM ET Ready to get social? In this deminar (that's demo + webinar) session, we will take a look at the Mi... ...

Top Downloads

SharePoint 2013 Feedback Solution - collect feedback from users into a custom feedback list that captures their feedback and exactly where they were in SharePoint when they provided it.

Why CRM Fails - research into CRM failure, best practices, and how to recover from a failing project.

The 60 Second Collaboration Readiness Self-Evaluation - is your team really ready to collaborate?  If they're not, software isn't going to help.  Take the quick self-evaluation in each department to understand how well your culture collaborates.

Identify Your Support Gaps - collaboration and CRM projects often fall short when it comes to supporting users, because support for these projects is different from other projects.  



The information herein may be used solely at your own risk.  No warranty is made by the author or by C5 Insight, Inc.

The opinions expressed herein are those of the individual authors and do not necessarily represent C5 Insight, Inc in any way.

Copyright 2011-2013 by C5 Insight