Serial Port issue in Compact Framework 3.5
<p>I am currently working on windows mobile 6.5 application for handheld device(NAUTIZ X3). The application tries to open a serial port. However, the serial port can be opened in emulator(windows mobile 6.5.3). Once I deploy to the real device, the serial port cannot be opened at that point. It throws the Exception - The Port "COM6" does not exist. Here is the code I use to open the serial port.</p>

<pre><code>SerialPort sp = new SerialPort(portName+":", 9600);
sp.Parity = Parity.None;
sp.StopBits=StopBits.One;
sp.Handshake = Handske.None

if(sp !=null &amp;&amp; !sp.IsOpen){
   sp.Open();
   ReadData();
}
</code></pre>

<p>Does anyone have any idea of why it occurs? </p>

<p>Thanks for any help in advance.</p>

<p>Charles</p>
