Hi Tech Friends,
Error message: -1 is not a valid state code for mailbox MS CRM 2013 while disabling the user using SDK.
The code perfectly works fine in MSCRM 2011. The problem shows up in MSCRM 2013 only.
Code sample used form this link:
http://msdn.microsoft.com/en-us/library/jj602914.aspx
-Jai