private void button1_Click(object sender, System.EventArgs e)
{
MSComm mscom = new MSCommLib.MSCommClass();
mscom.CommPort = 2;
mscom.Settings = "9600,n,8,1";
mscom.InBufferSize = 128;
mscom.OutBufferSize = 128;
mscom.InputMode = MSCommLib.InputModeConstants.comInputModeText;
mscom.InputLen = 1;
mscom.SThreshold = 1;
mscom.RThreshold = 1;
mscom.InBufferCount = 0;
mscom.OutBufferCount = 0;
mscom.PortOpen = true;
}一触发这个事件就出现 
未处理的“System.Runtime.InteropServices.COMException”类型的异常出现在 test.exe 中。其他信息: 类别未授权使用