FileStream התבקש לפתוח התקן שאינו קובץ. לתמיכה עבור התקנים כגון 'com': או "lpt1:", קרא ל- CreateFile בעצמך ולאחר מכן השתמש בבנאי FileStream המקבלים מטפל במערכת הפעלה כ- IntPtr.
Click to search this error in Google
English version
FileStream was asked to open a device that was not a file. For support for devices like 'com1:' or 'lpt1:', call CreateFile, then use the FileStream constructors that take an OS handle as an IntPtr.