title: Getting a Com Exception for unknown reason
body: <p>I am trying to add List of Adusers into a Dictionary but for some reason, it works for 1 user who's name is "a" but then for second user "abcdedf ancdef" its giving me this exception,</p>
  
  <p><strong>_COMPlusExceptionCode = 0xe0434f4d</strong></p>
  
  <pre><code>                         if (member != null &amp;&amp; !string.IsNullOrEmpty(member.UserName))
                          {
                              string MemberName = member.UserName.ToString().Replace(".", " ");
                              UserList.Add(groupName, MemberName);
                          }
  </code></pre>
  
  <p>This is what i got while debugging, no clue where to go to find the solution, here's the code</p>
  
  <pre><code>        protected override void CreateChildControls()
      {
          base.CreateChildControls();
  
          try
          {
              TreeView tree = new TreeView();
              TreeNode groupNode = default(TreeNode);
              List&lt;string&gt; GroupList = new List&lt;string&gt;();
              Dictionary&lt;string, string&gt; UserList = new Dictionary&lt;string, string&gt;();
              List&lt;string&gt; IndividualUserList = new List&lt;string&gt;();
  
              foreach (SPUser user in SPContext.Current.Web.Users)
              {
                  string groupName = FormatUserLogin(user.Name);
  
                  if (!user.IsDomainGroup &amp;&amp;  groupName != "" &amp;&amp; groupName != "System Account")
                      IndividualUserList.Add(groupName);
  
                  else if (user.IsDomainGroup &amp;&amp; !string.IsNullOrEmpty(groupName) &amp;&amp; 
                      Directory.DoesGroupExist(groupName))
                  {
                      GroupList.Add(groupName);
                      foreach (ADUser member in Directory.GetUsersFromGroup(groupName))
                      {
                          if (member != null &amp;&amp; !string.IsNullOrEmpty(member.UserName))
                          {
                              string MemberName = member.UserName.ToString().Replace(".", " ");
                              UserList.Add(groupName, MemberName);
                          }
                      }
                  }
              }
  
              IndividualUserList.Sort();
  
              foreach (string Item in IndividualUserList)
              {
                  groupNode = new TreeNode(Item);
              }
  
              foreach (string GroupListItem in GroupList)
              {
                  groupNode = new TreeNode(GroupListItem);
                  foreach (KeyValuePair&lt;string, string&gt; UserPair in UserList)
                  {
                      if (UserPair.Key == GroupListItem)
                      {
                          groupNode.ChildNodes.Add(new TreeNode(UserPair.Value));
                      }
                  }
              }
  
              if (groupNode != null)
              {
                  tree.Nodes.Add(groupNode);
                  this.Controls.Add(tree);
              } 
              tree.Nodes.Add(groupNode);
          }
          catch (Exception)
          {
              //loggingit
          }
      }
  </code></pre>