That's probably because you have added RoleId parameter to another command object than the one you are using executing
UPDATE command.
cmd1.Parameters.Add("@RoleID", SqlDbType.UniqueIdentifier);
cmd1.Parameters["@RoleID"].Value = new Guid(roleId.ToString());
Change it to following-
cmd.Parameters.Add("@RoleID", SqlDbType.UniqueIdentifier);
cmd.Parameters["@RoleID"].Value = new Guid(roleId.ToString());
Hope, it helps :)