Link to home
Start Free TrialLog in
Avatar of cmdolcet
cmdolcetFlag for United States of America

asked on

Access to COM port is denied

I am trying to test out some functionality when I try and write to a cOM port and I keep getting access to port is denied. I originally open my com port and set it up however Im testing out to see if the device becomes unplugged (which I do do) I get an Access to the port is denied error
COM-Error.png
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cmdolcet

ASKER

No nothing should be taking it up. I have attached a screen shot of the serialPort properties. This error only happens when I try to write to the device
COM-Port-Access-Denied.png
Have you had this working before?  Is this new development work?  I see that the port name is COM30...is that correct?
I have not had this working before. You are correct the device is opening COM 30 which is ok with my program
1) What operating system are you working with?  

2) Are you having UAC issues with Vista/Windows 7?  

3) Is this application running from a network share?
OK I figured it out. I was keeping a reference to the serial com and not closing it correctly. I am all set now

Thanks for all the help
Well, that answered the "Is something else using the COM port?" question...