Tuesday, 29 January 2013

Claims to Windows Token Service - Unexpected Claims Authentication Exception

The following error is found in SharePoint 2010 ULS Log / Developer Dashboard
Exception Message: Claims to Windows Token Service - Unexpected Claims Authentication Exception

Details: Claims Authentication Unexpected g220 No windows identity for [domain]\[user] Call stack:
at Microsoft.SharePoint.Administration.SPFarm.CurrentClaimsUserIsBoxAdministrator(IClaimsIdentity identity) at Microsoft.SharePoint.Administration.SPFarm.CurrentUserIsBoxAdministrator() at Microsoft.SharePoint.Administration.SPWebApplication.CurrentUserIgnoreThrottle() at Microsoft.SharePoint.SPManagedCodeInterop.CanCurrentUserIgnoreThrottle(Guid siteId) at Microsoft.SharePoint.Library.SPRequestInternalClass.CrossListQuery(String bstrUrl, String bstrXmlWebs, String bstrXmlLists, String bstrXmlQuery, ISP2DSafeArrayWriter pCallback, Object& pvarColumns) at Microsoft.SharePoint.Library.SPRequest.CrossListQuery(String bstrUrl, String bstrXmlWebs, String bstrXmlLists, String bstrXmlQuery, ISP2DSafeArrayWriter pCallback, Object& pvarColumns) at Microsoft.SharePoint.SPWeb.GetSiteData(SPSiteDataQuery query) at SiteDataQuery.VisualWebPart1.VisualWebPart1UserControl.GetDataUsingContentType(UInt32 rowLimit, SPWeb web) at SiteDataQuery.VisualWebPart1.VisualWebPart1UserControl.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.AddedControl(Control control, Int32 index) at SiteDataQuery.VisualWebPart1.VisualWebPart1.CreateChildControls()
Pre-conditions: 

  • SharePoint Web Application uses Claims-based Authentication 
  • Current log in user is not added to any group of the current server (Windows Identity Not Found) 
  • Claims to Windows Token Service is Stopped in the Central Administration Site. 


Resolution: Turn on Claims to Windows Token Service in Central Administration Site

Root Cause: unknown yet. Trying to get some information/documentation from Microsoft.

Possible cause: It is the way SharePoint works internally. The web part code tries to get SharePoint site data (e.g SPSiteDataQuery), SharePoint tries to determine if List View Threshold is reached / CanCurrentUserIgnoreThrottle. Then the exception is thrown if SPFarm could not determine / convert Windows token to Claims token. Note that the web part still return enough data. Just some annoy exceptions in ULS/Developer dashboard as above

Saturday, 19 January 2013

Spellable Password Generator


Free Monthly Calendar Template

This free monthly calendar template for Excel allows you to create a professional looking monthly calendar by simply choosing a month and year. Version 2.0 has been greatly simplified and now lets you make copies of the worksheet so you can create a 12-monthly calendar workbook, starting with any month. Make Monday the first day in the calendar by simply clicking on a checkbox.


Source:
http://www.vertex42.com/calendars/monthly-calendar.html

Tuesday, 15 January 2013

Tips to keep your TODO list fresh


Keep Your To-Do List Fresh with the 3-Day Rule

A to-do list is only useful if you cross things off as often as you add tasks on. If something’s been on your list for more than three days, do one of the following:

  • Do it immediately. It may take you less time than you think.
  • Schedule it. Find a time slot on your calendar when you can get the task done. If it’s important enough to have on your list, then commit to doing it at a specific time and day.
  • Let it die. If you’re not willing to do something immediately or schedule it for later, you won’t ever do it. Accept that it’s not really a priority and take it off your list.
http://hbr.org/tip?date=112912

VMWare Player - Virtual Network Editor

With VMWare Player, a quick way to start advance network editor tool is to create a command line file as follow


CD "C:\Program Files (x86)\VMware\VMware Player"
rundll32.exe vmnetui.dll VMNetUI_ShowStandalone

Save as .bat file then Right Click Run As Administrator.

Virtual Network Editor

Monday, 7 January 2013

Article: 12 Great Motivational Quotes for 2013

12 Great Motivational Quotes for 2013

At the start of every year, I create a list of quotes to guide and inspire me for the next 12 months. Here are the quotes I've selected for 2013:
  1. "Cherish your visions and your dreams as they are the children of your soul, the blueprints of your ultimate achievements."
    Napoleon Hill

  2. "The key to success is to focus our conscious mind on things we desire not things we fear."
    Brian Tracy

  3. "Success is getting what you want. Happiness is wanting what you get."
    Dale Carnegie

  4. "Obstacles are necessary for success because in selling, as in all careers of importance, victory comes only after many struggles and countless defeats."
    Og Mandino

  5. "A real decision is measured by the fact that you've taken a new action. If there's no action, you haven't truly decided."
    Tony Robbins

  6. "If you can't control your anger, you are as helpless as a city without walls waiting to be attacked."
    The Book of Proverbs

  7. A mediocre person tells. A good person explains. A superior person demonstrates. A great person inspires others to see for themselves."
    Harvey Mackay

  8. "Freedom, privileges, options, must constantly be exercised, even at the risk of inconvenience."
    Jack Vance

  9. "Take care of your body. It's the only place you have to live."
    Jim Rohn

  10. "You can have everything in life you want, if you will just help other people get what they want."
    Zig Ziglar

  11. "The number of times I succeed is in direct proportion to the number of times I can fail and keep on trying."
    Tom Hopkins

  12. "You have everything you need to build something far bigger than yourself."
    Seth Godin