473,386 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Serial ports

I have a application which opens the port using .NET 2 serial port handler.
On my computer using WinXP Pro SP2 updated I have three accounts. On two
of the accounts the program is able to open COM1 correctly but on the third
account it says the access is denied, I can open other serial ports. I have
also tried an older application I have that uses the more direct API to
access the port. This is driving me nuts...

Anybody aware of how to give myself permission on the third account. I am
set a admin on all three. The only thing I can think of is the third
account was created recently.

Thanks,
John
Apr 22 '07 #1
5 1925
"John J. Hughes II" <in*****@nowhere.comwrote in message
news:Oo*************@TK2MSFTNGP06.phx.gbl...
>I have a application which opens the port using .NET 2 serial port handler.
On my computer using WinXP Pro SP2 updated I have three accounts. On two
of the accounts the program is able to open COM1 correctly but on the third
account it says the access is denied, I can open other serial ports. I
have also tried an older application I have that uses the more direct API
to access the port. This is driving me nuts...

Anybody aware of how to give myself permission on the third account. I am
set a admin on all three. The only thing I can think of is the third
account was created recently.
Just guessing...

When you perform this test, could some process already have COM1 open? I
think Process Explorer (free utility from Microsoft) will tell you for sure.
Apr 22 '07 #2

"John J. Hughes II" <in*****@nowhere.comwrote in message
news:Oo*************@TK2MSFTNGP06.phx.gbl...
>I have a application which opens the port using .NET 2 serial port handler.
On my computer using WinXP Pro SP2 updated I have three accounts. On two
of the accounts the program is able to open COM1 correctly but on the third
account it says the access is denied, I can open other serial ports. I
have also tried an older application I have that uses the more direct API
to access the port. This is driving me nuts...
A few possible leads here:

http://www.thescripts.com/forum/thread524785.html

Portmon utility:
http://www.microsoft.com/technet/sys...utilities.mspx

Apr 22 '07 #3
Michael,

Thanks for the sugestions, the port monitor utility shows one of the
programs I wrote opening the port when I log onto that account.

But the problem remains since I can't figure out why or how the program is
starting. Windows Task Manager and Process Explorer do not show the
program running and I have tried seaching for the tasks without avail. I
have also checked all the normal ways to start a program and can not find it
mentioned. The Port Monitor program does not show the port being opened
unless I am logged onto that account.

Any suggestions on where to look?

Regards,
John

"Michael A. Covington" <lo**@ai.uga.edu.for.addresswrote in message
news:e7**************@TK2MSFTNGP03.phx.gbl...
>
"John J. Hughes II" <in*****@nowhere.comwrote in message
news:Oo*************@TK2MSFTNGP06.phx.gbl...
>>I have a application which opens the port using .NET 2 serial port
handler. On my computer using WinXP Pro SP2 updated I have three accounts.
On two of the accounts the program is able to open COM1 correctly but on
the third account it says the access is denied, I can open other serial
ports. I have also tried an older application I have that uses the more
direct API to access the port. This is driving me nuts...

A few possible leads here:

http://www.thescripts.com/forum/thread524785.html

Portmon utility:
http://www.microsoft.com/technet/sys...utilities.mspx

Apr 23 '07 #4
John,

If your using XP, try using this utility:
http://www.microsoft.com/technet/sys.../Autoruns.mspx

Dave
Apr 23 '07 #5
Dave,

Short answer it is fix...

Long answer: Auto Runs did not show the application being started and as I
said task manager and process explorer did not show it running, very odd.

I switched back to the main account where the serial port worked and search
and deleted all instances my application on the system (figured it could not
start that way). I then switch back to the problem account and yes of
course the serial port was still being held open but by another program.
This time it was active sync which I only use via USB. I disabled the COM1
interface, been so long that I forgot on a new account it would be on by
default. After logging on/off the port was not in use.

I think the port monitor program was misreporting what application was
opening the program, not sure where it gets the information from so I can't
address the matter further.

Again thanks for the help,
John

"D. Yates" <fo****@hotmail.comwrote in message
news:u5*************@TK2MSFTNGP06.phx.gbl...
John,

If your using XP, try using this utility:
http://www.microsoft.com/technet/sys.../Autoruns.mspx

Dave

Apr 23 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: M. Raab | last post by:
i have written an application that utilizes serail ports. In order not to have to reinvent code, I decided to use John Hind's sample code that he presented in MSDN magazine last year (Serial Comm:...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
1
by: David | last post by:
I have written an application in VB.NET 2003 that uses the SAX serial component for RS232 communications with hardware. The program sets up 2 serial ports so that it can talk to 2 different...
1
by: henrycortezwu | last post by:
Hi All, I'm trying to connect to a virtual port (COM19, OUTGOING, "Bluetooth Serial Port") using VS2005 System.IO.Ports. When I ran the ff code below here's what happens. 1) VS2005 Compiles w/o...
3
by: Tom Brown | last post by:
Hey people, I've written a python app that r/w eight serial ports to control eight devices using eight threads. This all works very nicely in Linux. I even put a GUI on it using PyQt4. Still...
5
by: LongBow | last post by:
Hello, Is there a way, in .NET, to determine what are the avialable Serial (Communications) Ports on a Windows OS and is there a way to determine that port isn't being use other than attempting...
2
by: joaquimfpinto | last post by:
Dear All, I made an app in c# that uses several serial ports. For the serial ports I use a pnp Sunix board, some with 8 serial ports other with 4 or even 2 serial ports. Whenever I use the...
3
by: naveen.sabapathy | last post by:
Hi, I am trying to use virtual serial ports to develop/test my serial communication program. Running in to trouble... I am using com0com to create the virtual ports. The virtual ports seem to...
2
by: Nasif | last post by:
Currently I am writing a program which sends and receives messages through serial port to a device. I am using C# and Microsoft Visual studio 2005 for windows program. But my problem is when i try...
2
by: Dave Harry | last post by:
I'm using the following code to determine the available serial ports: ComboBoxPort.Items.Clear() For Each sp As String In My.Computer.Ports.SerialPortNames ComboBoxPort.Items.Add(sp) Next It...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.