Click to See Complete Forum and Search --> : Not Another Serial Thread! Noo


ryanshowseason2
April 18th, 2008, 12:59 PM
Ok I'm not asking for code I've got that. Im running a speech web application on framework 1.1 in visual studio 2003, iis version 5.0, sasdk for speech recognition blah blah blah

For those who care I'm making a mod of this http://www.devx.com/dotnet/Article/30866/0 project of voice activating an arobot.

Heres the catch. Right about here...

CreateFile("COM3" blah blah blah blah); the kernel32.dll version

Create file gives me -1 an invalid handle value then I

throw(new ApplicationException(GetLastError())

Now on my pc I get an error code of 5 meaning access denied.... Does anyone know if installing in the wrong order may scre me up? or some extra permissions are necesary to get this workin?

But then on my laptop I get an error code of 2 meaning file not found. Im guessing this is because I have no com ports on the laptop and it cant find com. Still though im using a usb to serial adapter.

If either of these problems is corrected I win. Just need this to work once on the laptop or pc. So whats the deal with access denied for writing to a serial port?


Thanks petabytes in advance