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.
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
- Allow Anonymous Access via Central Administration
Application Management > Manage Web Applications > Authentication Providers > Enable anonymous access
- Disable Viewformpageslockdown
Open SharePoint 2010 Management Shell
get-spfeature -site URL
$viewformlockdown = get-spfeature viewformpageslockdown
disable-spfeature $viewformlockdown -URL
- Enable Anonymous access via the Site Collection
Anonymous Access > Entire Web site
- Enable Add Items to List for Anonymous users
Big thanks to Russ Maxwell for his post on the above PowerShell ViewFormLockDown solution
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.
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
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"
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
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.
I was upgrading a SharePoint 2010 farm using PSConfig.exe as shown below
PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures
After the timer stopped at “The farm is being upgraded in the timer service process. The task is 10.00% completed.” it failed and after searching the LOGS I found the below error.
Unable to create a Service Connection Point in the current Active Directory domain. Verify that the SharePoint container exists in the current domain and that you have rights to write to it.
Microsoft.SharePoint.SPException: The object LDAP://CN=Microsoft SharePoint Products,CN=System,DC=*,DC=*,DC=com doesn't exist in the directory.
at Microsoft.SharePoint.Administration.SPServiceConnectionPoint.Ensure(String serviceBindingInformation)
To resolve the the issue I used this walkthrough.
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
SharePoint Web Services Default DOMAINsp2010.farm
SharePoint Web Services System DOMAINsp2010.farm
User Profile Service DOMAINsp2010.userprof
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 />
More info can be found at Harbar’s blog