Hello,
I am writing an web base application that needs to read data
from a serial port(Postal Scale), I assume i will be using this namespace
System.IO.Ports.SerialPort
I know in vb it would be something like:
(serialport Control, 1200,8,E,1 ...)
Dim Weight As String
SerialPort1.Open()
SerialPort1.Write("W" & Chr(13))
Weight = SerialPort1.ReadLine
MessageBox.Show(Weight)
SerialPort1.Close()
I want to read the info from the local (clients) system that when press
"get weight" button it will call the routine and get this info.
I relize there will be security issuse involved, how to I setup the client
to allow this process.
Generally I need some help understanding and or an example of this in
asp.net 2
Thanks,
Tdar
Yunus Emre ALPÖZEN [MVP] - 23 Jan 2006 20:08 GMT
Hi,
It is not possible ! Because it is a WEB APPLICATION not a WINDOWS
APPLICATION. There is an important difference between them. Web Applications
are executed on server, but windows applicaitons are executed on client.. In
the following code, u try to access server's serial port. U have two choice
to do this, one is writing a windows application and the second one is
implementing an ActiveX component. and embedding that activeX component into
your asp.net page....

Signature
HTH
Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET
Microsoft .NET & Security MVP
> Hello,
> I am writing an web base application that needs to read data
[quoted text clipped - 23 lines]
> Thanks,
> Tdar