title: The type or namespace name 'Ports' does not exist in the namespace 'System.IO'
body: <p>I am working on developing a windows store app on my windows 8.1 system,64 bit (I need to deploy this app on my windows surface pro 3 tablet), technology being used is C#. I need to communicate through the RS-232 port. For this I am using the SerialPort class which falls under the namespace System.IO.Ports. But when I am including this in my C# code, I am getting the error -</p>
  
  <p>"The type or namespace name 'Ports' does not exist in the namespace 'System.IO' (are you missing an assembly reference?)"</p>
  
  <p>I have the windows SDK 8.0 installed. What could be the probable reason for this issue ? Is there any other was to communicate through the RS-232 port .</p>
  
  <p>I am working on developing a windows store app on my windows 8.1 system,64 bit (I need to deploy this app on my windows surface pro 3 tablet), technology being used is C#. I need to communicate through the RS-232 port. For this I am using the SerialPort class which falls under the namespace System.IO.Ports. But when I am including this in my C# code, I am getting the error -</p>
  
  <p>"The type or namespace name 'Ports' does not exist in the namespace 'System.IO' (are you missing an assembly reference?)"</p>
  
  <p>I have the windows SDK 8.0 installed. What could be the probable reason for this issue ? Is there any other was to communicate through the RS-232 port .</p>
  
  <p>Any pointer or suggested would be really helpful.</p>
  
  <p>Here is the code -</p>
  
  <pre><code>using System;
  using System.IO;
  using System.IO.Ports;
  
  namespace App4
  {
      public class Class2
      {
          private SerialPort comport = new SerialPort();
      }
  
      private void SerialPortInit()
          {
  
              comport.BaudRate = 115200;
              comport.DataBits = 8;
              comport.StopBits = StopBits.One;
              comport.Parity = Parity.None;
  
          }
  }
  </code></pre>
  
  <p>Google says that Serialport class is supported in dotNetFrameWork 4.5 (which is the one I am using) but still I am getting this error.</p>
  
  <p>Regards, 
  Shikha</p>