title: "object reference not set to an instance of an object" when adding a WCF service reference
body: <p>I have created a WCF service to manage trace events, like :</p>
  
  <pre><code>[ServiceContract]
  public interface IEvents
  {
      [OperationContract]
      List&lt;BOEvent&gt; GetEvents(int numResults = 100);
  
  
      [OperationContract(IsOneWay=true)]
      void AddEvent(BOEvent);
  }
  </code></pre>
  
  <p>I compile it and within VS2010 and added a 'Service Reference', but I am geting the following error:</p>
  
  <p><img src="https://i.stack.imgur.com/rPzDk.jpg" alt="enter image description here"></p>
  
  <p>My service is running fine, I can see it and its wsdl inside the broswer.</p>
  
  <p>What's going wrong?</p>