System.UnauthorizedAccessException from Serial Port in VB.NET
- by psuhas
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