I finally found the solution.
Session["name"] = txtnameuser2nd.Text;
PrincipalContext context = new PrincipalContext(ContextType.Domain, "nmmu.ac.za");
UserPrincipal user = UserPrincipal.FindByIdentity(context, Session["name"].ToString());
txtname2nd.Text = user.GivenName.ToString();
txtlastname2nd.Text = user.Surname.ToString();
i ddnt give the user full access to the domain server, so i solved it by including the correct name of the domain server. nmmu.ac.za instead of nmmu. nmmu was not fully defined
:-)