2010-10-28

SPS 2010 Silverlight Error if page security verification disabled


After disabling page security verification on the web application (CA > Manage web applications > General Settings > Security validation is: Off ) Silverlight stopped working when trying to create Sites/Lists.





Error

An unhandled exception occured in the Silverlight Application



At this stage the only fix is to enable page security verification.

2010-08-31

Session "OfficeSearch14HealthSession" failed to start with the following error: 0xC0000035



Issue:
Session "OfficeSearch14HealthSession" failed to start with the following error: 0xC0000035



Cause:
The Search Health Monitoring - Trace Events job can't access a Health Monitoring resource.

The offending class is Microsoft.Office.Server.Search.Monitoring.TraceDiagnosticsProvider this job is run every minute and if it conflicts with another job accessing the same resource it will fail.

The following PS command will return Jobs scheduled to run < every 5 minutes:

Get-SPTimerJob | Where {$_.IsDisabled -eq $FALSE -and $_.Schedule.Description -eq "Minutes" -and $_.Schedule.Interval -lt "5"} | Foreach-Object{$_.PSObject.Properties | Select-Object Name,Value;}



Fix:
Changed the Search Health Monitoring - Trace Events job schedule to every 2 minutes, if you really want to have clean logs.

Update: I'm working on the fix but it seems related to current SP log file.

2010-08-11

Proactively monitoring SPS 2010 and MOSS

I was recently introduced to what is now a critical tool. The ULS Viewer http://code.msdn.microsoft.com/ULSViewer



The ULSViewer tool performs various actions against the data from ULS log files in order to better analyze it. ULSViewer allows the user to: 



  • Highlight data of importance to the user on the fly

  • Bookmark log entries

  • Append logs to other logs in order to track trends

  • Hide unimportant data

  • Only view critical log entries by sorting data by severity

  • Write rules to prompt the user when certain events occur

  • View your data in a spreadsheet instead of the text file ULS generates

  • Monitor remote machines logs that are running ULS services

  • Open multiple logs at the same time in order to compare log files.

  • Open logs files from multiple machines at the same time.

2010-07-09

SPS 2010 Certifications

With the new version of SharePoint comes four new certifications and this time they include two Pro certification and no WSS/MOSS separation.



    IT Professionals
  • Exam 70-667 TS: Microsoft SharePoint 2010, Configuring

    Microsoft Official Curriculum: Course covers configuration of SharePoint 2010 including deployment, upgrade, management, and operation on a server farm.


  • Exam 70-668 PRO: Microsoft SharePoint 2010, Administrator

    Microsoft Official Curriculum: Course covers advanced SharePoint 2010 topics including capacity planning, topology designing, and performance tuning.


    Developers
  • Exam 70-573 TS: Microsoft SharePoint 2010, Application Development

    Microsoft Official Curriculum: Five-day instructor-led course designed for developers with six months or more of .NET development experience. Course covers what you need to know to be an effective member of a SharePoint development team that uses Visual Studio 2010.

  • Exam 70-576 PRO: Designing and Developing Microsoft SharePoint 2010 Applications

    Microsoft Official Curriculum: Five-day instructor-led training course designed for development team leads who have already passed the Developing on SharePoint 2010 technical specialist exam. The course covers choosing technologies for and scoping a SharePoint project, best practices for SharePoint development, configuring a SharePoint development environment, advanced use of SharePoint developer features, and debugging of code in a SharePoint project.


Read more here

2010-05-22

WTF Correlation ID

I was setting up a new SPS 2010 environment when I got:











Error



The given key was not present in the dictionary.








Troubleshoot issues with Microsoft SharePoint Foundation.




Correlation ID: 59994675-c867-4246-8fd3-56f6a70087c9


Date and Time: 5/22/2010 12:07:50 PM





It's highly unlikely (read impossible) that you will receive the same error as Correlation ID's are unique. To understand a little more about them read this: ILM 2007 Design Concepts

So how do you fix your problem after you receiving an error.




My initial strategy was to check the event log for a more detailed description because I was setting up an SPS service... that search was fruitless so I checked the sharepoint logs.




Steps to resolve:





  1. Go to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS

  2. Find the log that was modified around the time of the error

  3. Search for your Correlation ID.



My error is below and it basically means there's something missing from the AD account I used to run the service which MS think should be there... well guess what, yours truly used a security group instead of a User account.










05/22/2010 12:07:48.63 w3wp.exe (0x2408) 0x277C SharePoint Foundation Runtime tkau Unexpected System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Microsoft.SharePoint.Utilities.SPUtility.GetUserPropertyFromAD(SPWebApplication webApplicaiton, String loginName, String propertyName) at Microsoft.SharePoint.Administration.SPManagedAccount.GetUserAccountControl(String username) at Microsoft.SharePoint.ApplicationPages.AdminConfigServices.ValidateUserLogon(Object sender, ServerValidateEventArgs e) at System.Web.UI.WebControls.CustomValidator.OnServerValidate(String value) at System.Web.UI.WebControls.BaseValidator.Validate() at System.Web.UI.Page.Validate() at System.Web.UI.WebControls.Button.Ra... 59994675-c867-4246-8fd3-56f6a70087c9

2010-03-03

Bug in SPWeb CreateDefaultAssociatedGroups


In an environment I manage I recently encountered an MS bug in some site generation code.


Case: Sharepoint list form with site metadata. When the record gets approved a site is automatically generated, with unique permissions based on data from the list.



Bug: The site is created but the Visitor group property isn't saved. By default CreateDefaultAssociatedGroups will not create the Visitor group, but instead associate the Site Collection Visitor group with the new site's AssociatedVisitorGroup property. To get around this you need to set this property to null before you call CreateDefaultAssociatedGroups
eg:


oNewSite.AssociatedVisitorGroup = null;


oNewSite.BreakRoleInheritance(false);


oNewSite.Update();


oNewSite.CreateDefaultAssociatedGroups(oOwner.LoginName, oOwner.LoginName, sNewSite);


oNewSite.Update();



But, and here's the bug; while this does create the groups and the proper association, the site property vti_associatevisitorgroup is not updated. What happens now is that even if you update the Site Groups through the UI it still won't update this property and there will never be a Visitor group association.



Fix: Fortunately the fix is easy; just update the property with the created visitor group id.


oNewSite.CreateDefaultAssociatedGroups(oOwner.LoginName, oOwner.LoginName, sNewSite);


oNewSite.Properties["vti_associatevisitorgroup"] = oNewSite.AssociatedVisitorGroup.ID.ToString();


oNewSite.Properties.Update();


oNewSite.Update();