Tag Archive for SharePoint 2010

User cannot be found SharePoint 2010

I had an issue today when trying to get to the Library settings of a SharePoint 2010 document library.

User cannot be found

I checked out the corrilation ID and got the following

Unexpected       Microsoft.SharePoint.SPException: User cannot be found.    at Microsoft.SharePoint.SPUserCollection.get_Item(String loginName)     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPFile file, Int32 fileVer, Int32& userid, DateTime& lastModified)     at Microsoft.SharePoint.Workflow.SPWorkflowManager.AddDeclSiteTemplates(SPWeb web, String visibility, SPWorkflowTemplateCollection wftemplates, SPListTemplateType templateType)     at Microsoft.SharePoint.Workflow.SPWorkflowManager.<>c__DisplayClass4.<RegisterNoCodeTemplates>b__0()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunW...   1cb4ed13-c851-4083-9b20-1b2502ebaa0b

06/18/2012 15:21:17.22* w3wp.exe (0x1BD0)                                0x14C0  SharePoint Foundation               Runtime                                   tkau      Unexpected       ...ithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RegisterNoCodeTemplates(SPWorkflowTemplateCollection wftemplates, SPWeb web)     at Microsoft.SharePoint.SPWeb.get_WorkflowTemplates()     at Microsoft.SharePoint.ApplicationPages.ListEditPage.SetSectionLinks()     at Microsoft.SharePoint.ApplicationPages.ListEditPage.OnLoad(EventArgs e)     at ASP._layouts_listedit_aspx.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     1cb4ed13-c851-4083-9b20-1b2502ebaa0b

Somewhere in there it mentions Workflow a number of times.  So I had a look at the workflows on the site, and noticed that the workflow was created by a user on an alternative Domain that SharePoint no longer has access to due to a domain migration.


Save and publish the workflow with a the current user that has access to the site via SharePoint designer.

Post to Twitter

Publishing Anonymous InfoPath form for SharePoint 2010 Internet Sites

We were working on our new SharePoint 2010 Internet site today here at G&T and had some issues without contact form not allowing anonymous users to submit contact us forms.
We had done everything right, or so we thought. After getting the below errors and a lot of head scratching and googling we managed to get everything resolved.

Unknown SPRequest error occurred. More information: 0x80070005
The XSN is null and its not a cross server issue. Most likely a permission issue
  1. Allow Anonymous Access via Central Administration
    Application Management > Manage Web Applications > Authentication Providers > Enable anonymous access
  2. Disable Viewformpageslockdown
    Open SharePoint 2010 Management Shell

    get-spfeature -site URL
    $viewformlockdown = get-spfeature viewformpageslockdown
    disable-spfeature $viewformlockdown -URL
  3. Enable Anonymous access via the Site Collection
    Goto http://URL/_layouts/user.aspx
    Anonymous Access > Entire Web site
  4. Enable Add Items to List for Anonymous users

Big thanks to Russ Maxwell for his post on the above PowerShell ViewFormLockDown solution

Post to Twitter


Recently I was setting up my single sign-on with Office 365, and needed to run my OnlineCoexistenceSync. I was running the sync off a server that had SharePoint 2010 on and well UPS kicked off again and I was getting the following error.

Start-OnlineCoexistenceSync : Cannot start service MSOnlineSyncScheduler on computer '.'.

After checking my SharePoint 2010 farm I found that my UPS had stopped and needed to start it again. Once that had started everything synced up with my 365 domain.

UPS will never surprise me, I expect the worst from that service every time.

Post to Twitter

Rugby World Cup 2011 SharePoint Site Template

I had an idea today on the way to work that SharePoint 2010 could be used to follow the Rugby World cup 2011. This site can be used by many different organizations hence the reason I am giving it away for free 🙂

Basically the site has all the teams and their match fixtures for users to follow the games. Whats more is users can get to vote on the outcome of each game and have on going discussions about the results.

Hopefully this will just add to your current SharePoint 2010 ROI or boost End user adoption

Check it out here http://www.bradg.co.za/rwc.zip

Post to Twitter

Remove corrupt SharePoint 2010 Service Application

If you ever have an issue with deleting a SharePoint 2010 Service Application from Central Administration and the progress circle is on an endless loop this trick should come in handy.

Open SharePoint 2010 Management Shell and run the following command to get the GUID ID of the Service Application you want to remove


Copy the GUID ID and run the next command

stsadm -o deleteconfigurationobject -id "GUID ID"

Post to Twitter

error occurred in deployment step ‘Retract Solution’: The language-neutral solution package was not found

I got the following error while deploying from Visual Studio 2010
to SharePoint 2010

error occurred in deployment step ‘Retract Solution’: The
language-neutral solution package was not found

I noticed that the error was occurring because the solution had
somehow been unable to retract a solution. The trick was to remove the solution
manually via SharePoint Management Shell

(Get-SPSolution solution.wsp).Delete()

Post to Twitter

SharePoint 2010 security token expiration date

In SharePoint 2010 when one uses Forms based authentication or NTLM and the popup box for credentials has a “Sign me in automatically” or “Remember my credentials” and one checks the tick box available you would think this would now log you on for the rest of time. However by default SharePoint 2010 security token expires on the client side machine after 24 hours.

To increase the security token expiration date on SharePoint 2010 one needs to run the following command from SharePoint PowerShell

$sts = Get-SPSecurityTokenServiceConfig
$sts.WindowsTokenLifetime = (New-TimeSpan -Day 365)
$sts.FormsTokenLifetime = (New-TimeSpan -Day 365)

Note that this will change the token to expire of 365 days for both Forms and NTLM.

Post to Twitter

SharePoint 2010 Application Pool GUIDs

SharePoint 2010 has some rather strange application pool guids.  The GUIDS are unique to each enviroment and therefore allmost impossible to tell what they are on face value.  This causing some issues when troubleshooting, so here is a quick guide to figure out what the Applications Pool GUID’s actually are.

In SharePoint Management Shell (Powershell) run the following command


This will return the following

Name                                     ProcessAccountName
----                                     ------------------
BusinessDataConnect                      DOMAINsp2010.bcsserv
ManagedMetadataService                   DOMAINsp2010.mmdserv
PerformancePoint                         DOMAINsp2010.perfpnt
SearchAdmin                              DOMAINsp2010.searchapp
SearchQuery                              DOMAINsp2010.searchquery
SecureStoreService                       DOMAINsp2010.secstore
SecurityTokenServiceApplicationPool      DOMAINsp2010.apppool
SharePoint Web Services Default          DOMAINsp2010.farm
SharePoint Web Services System           DOMAINsp2010.farm
User Profile Service                     DOMAINsp2010.userprof
VisioGraphics                            DOMAINsp2010.visioserv
WebAnalyticsServiceApplication           DOMAINsp2010.webanserv
WordAutomationService                    DOMAINsp2010.wordauto

To find the GUID run the following

Get-SPServiceApplicationPool | select Id, Name
<p>Id                                      Name<br />
--                                      ----<br />
9b3d53c7-fa8d-4448-93a9-8d400831ad74    BusinessDataConnect<br />
cbef2e49-25d2-4ca8-91fb-8c71a40742de    ManagedMetadataService<br />
24fccf54-c7ec-41ae-b016-f277e1b42e81    PerformancePoint<br />
c108b149-9696-4b13-8ca0-90b8bb8d050c    SearchAdmin<br />
ee40e2b9-d21c-4831-b24e-be67896f47ba    SearchQuery<br />
c5793f1a-7498-45a9-8472-ddfe7f26a74a    SecureStoreService<br />
3e6d3d36-0d29-4570-8724-88bd440cdcac    SecurityTokenServiceApplicationPool<br />
e68de5b9-1af9-4aaa-9b36-bc3ddbb83a18    SharePoint Web Services Default<br />
1e6817d2-2f13-4e6a-9554-4887fb105836    SharePoint Web Services System<br />
1e99faf7-e990-4f6b-8a9b-4dc72498aef4    User Profile Service<br />
15565b3f-18a0-49cc-9924-478907b0e319    VisioGraphics<br />
616ea3be-65d9-499a-aec2-c0de8279de90    WebAnalyticsServiceApplication<br />
aa6062de-816f-4213-9cec-d41cd5c909f2    WordAutomationService</p>

More info can be found at Harbar’s blog


Post to Twitter

SharePoint 2010 Hide left quick launch navigation bar

So you chose a SharePoint 2010 template and everything is working out besides the fact that you cannot get rid of the left quick launch navigation bar. Dont stress, this site has a load of great tips and tricks to get you on your way http://erikswenson.blogspot.com/2010/01/sharepoint-2010-base-css-classes.html

Hiding the left quick launch navigation bar is easy. Add a Content Editor WebPart (CEWP) to your site and add the following code by editing the HTML source of the WebPart

body #s4-leftpanel 
display: none; 
margin-left: 0px; 

Set the WebPart to hidden and once you save the page the left quick launch navigation bar will disappear

Post to Twitter