title: Warning: Type library exporter encountered a type that derives from a generic class and is not marked as [ClassInterface(ClassInterfaceType.None)]
body: <p>I was making a program suite to connect to a remote server and send some information via WSDL, this was sucessful and working correctly, but i was ordered to port all my programs into DLL's, i had to enable COM interop and make some returns, most of my programs went fine, until i found this error in one of my programs who use two proxy classes made from a WSDL, i have spend a whole week reading on the web details, but i can't understand how to fix it, this is the error</p>
  
  <pre><code>Warning 1   Type library exporter warning processing 'Tarea.CrSeedService.CrSeedClient, Tarea'. Warning: Type library exporter encountered a type that derives from a generic class and is not marked as [ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be exposed for such types. Consider marking the type with [ClassInterface(ClassInterfaceType.None)] and exposing an explicit interface as the default interface to COM using the ComDefaultInterface attribute. Tarea    
  </code></pre>
  
  <p>This is one of the proxy classes who gets the error</p>
  
  <p><a href="http://pastebin.com/y1zFfzER" rel="nofollow noreferrer">http://pastebin.com/y1zFfzER</a>
  and this is the reference.cs file of the Service Reference</p>
  
  <p><a href="http://pastebin.com/vJuFZqsd" rel="nofollow noreferrer">http://pastebin.com/vJuFZqsd</a></p>
  
  <p>inb4 some people report this question as duplicated I have readed <a href="https://stackoverflow.com/questions/134633/is-it-possible-to-implement-a-com-interface-with-a-net-generics-class">Is it possible to implement a COM interface with a .NET generics class?</a> 
  but still didn't get it</p>
  
  <p>if you see the pastebin i added already in all the classes definitions on the proxy cs file the following</p>
  
  <pre><code>[ClassInterface(ClassInterfaceType.None)]
  [ComSourceInterfaces(typeof(Procesos.Iclass1))]    
  </code></pre>
  
  <p>where </p>
  
  <pre><code>  [ComVisible(true)]
      public interface  Iclass1
      {
      string Ejecucion(string cn, string speed);
      }
  </code></pre>
  
  <p>where assemblyinfo.cs </p>
  
  <pre><code>[assembly: ComVisible(true)]
  </code></pre>
  
  <p>What should i do?
  What am i doing wrong?</p>
  
  <p>I would appreciate some guidance, VS2013 can't guide me exactly on where is the error
  although it manually says its "CrSeedService.CrSeedClient" i have added the definitions and still outputs the mistake.</p>
  
  <pre><code>[System.Diagnostics.DebuggerStepThroughAttribute()]
  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  [ClassInterface(ClassInterfaceType.None)]
  [ComSourceInterfaces(typeof(Procesos.Iclass1))]
  public partial class CrSeedClient :        System.ServiceModel.ClientBase&lt;Tarea.CrSeedService.CrSeed&gt;,   Tarea.CrSeedService.CrSeed
  {
  blah
  }
  </code></pre>
  
  <p>Regards</p>