Try this:
Guid ownerIdGuid = Guid.Empty; try { string ownerId = CallContextData.Current.Principal.Identity.UserId.ToString(); ownerIdGuid = new Guid(ownerId); } catch { // implement catch }
548k questions
547k answers
4 comments
86.3k users