The code is posted over at http://pastebin.com/MKcP1KYV
The 2 errors I'm getting are:
'System.Text.Encoding' does not contain a definition for 'ASCII' for line string stringData = Encoding.ASCII.GetString(data, 0, receivedDataLength);and
'string' does not contain a definition for 'Format' for line hex += String.Format("{0:x2}", (uint)System.Convert.ToUInt32(tmp.ToString()));
Does anyone know what else I could do? Also I know the "Console.Write...." won't work, I plan to replace it with Debug.Print if I can get past the 2 errors mentioned above.