System.UnauthorizedAccessException from Serial Port in VB.NET

Posted by psuhas on Stack Overflow See other posts from Stack Overflow or by psuhas
Published on 2009-05-29T01:54:39Z Indexed on 2010/03/21 18:31 UTC
Read the original article Hit count: 294

Filed under:
|
|

I am using VB.NET 2008 Express Edition to access Serial Port which is a USB to Serial port. Since this is removable, the app user can disconnect it at any time in app. I am getting an unhandled exception when I remove the USB Serial Port.

After research, it seems like a known problem in .NET (even in 3.5)

I am looking for some solution to get this done. I have already tried the app.config solution that was suggested and it does not work

Here is the link for issue http://connect.microsoft.com/VisualStudio/feedback/Validation.aspx?FeedbackID=140018

© Stack Overflow or respective owner

Related posts about vb

Related posts about .NET