Re: serial port access from asp.net

Tech-Archive recommends: Fix windows errors by optimizing your registry



>I use the serial port code that was published in MSDN magazine. It works
>for
> Windows Forms applications. It does not work in ASP.net. I have been
> told
> by many people you cannot access serial ports from ASP.net. Telling me
> you
> can access the serial ports doesn't do me any good.

Copying and pasting is not programming. And IT doesn't do you any good.

Hmmmm.... Why would code that is written for, and works for a Windows Forms
app not work in an ASP.Net app? Well, I haven't seen it, so I'll have to ask
The Amazing Kreskin..... he says it's permissions.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Al the programmer" <Altheprogrammer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:77A8DB7E-1E7A-4E3C-80E7-9AB6A05425CB@xxxxxxxxxxxxxxxx
>I use the serial port code that was published in MSDN magazine. It works
>for
> Windows Forms applications. It does not work in ASP.net. I have been
> told
> by many people you cannot access serial ports from ASP.net. Telling me
> you
> can access the serial ports doesn't do me any good.
>
>
> "Kevin Spencer" wrote:
>
>> > Accessing the serial ports in .net is not the problem. Accessing the
>> > serial
>> > ports in asp.net is the problem. Code that accesses the serial ports
>> > in a
>> > Windows form application does not work in a asp.net application.
>>
>> An ASP.Net application is a .Net application, just as a Windows Form
>> application is a .Net application. There is nothing you can do in a
>> Windows
>> Form app that you can't do in an ASP.Net app, except with regards to the
>> UI.
>>
>> IOW, yes you can access a serial port in an ASP.Net app. Or, let me
>> clarify:
>> yes -I- can access a serial port in an ASP.Net app.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> ..Net Developer
>> What You Seek Is What You Get.
>>
>> "Al the programmer" <Altheprogrammer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
>> message news:4C910B4E-F34D-40CD-8930-D1CB45DD0DDA@xxxxxxxxxxxxxxxx
>> > Accessing the serial ports in .net is not the problem. Accessing the
>> > serial
>> > ports in asp.net is the problem. Code that accesses the serial ports
>> > in a
>> > Windows form application does not work in a asp.net application.
>> >
>> >
>> > "Shawn H. Mesiatowsky" wrote:
>> >
>> >> Here is a .net assembly for accessing the serial port:
>> >>
>> >> http://franson.com/serialtools/index.asp?platform=net
>> >> only $30 bucks
>> >>
>> >> "Brock Allen" <ballen@xxxxxxxxxxxxxxxxx> wrote in message
>> >> news:360668632482173457288576@xxxxxxxxxxxxxxxxxxxxxxx
>> >> > There are no managed APIs to connect to the serial port in v1.x.
>> >> > There
>> >> > are
>> >> > in v2.0 though. If you need a solution now, you'll have to write
>> >> > unmanaged
>> >> > code and then interop to access it.
>> >> >
>> >> > -Brock
>> >> > DevelopMentor
>> >> > http://staff.develop.com/ballen
>> >> >
>> >> >
>> >> >
>> >> >> 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
>> >> >> been
>> >> >> told it is not possible to access the serial ports from asp.net.
>> >> >>
>> >> >> The application is used to control custom hardware. The hardware
>> >> >> is
>> >> >> connected to a PC through serial ports. Our customer wants to
>> >> >> control
>> >> >> the hardware from a remote location so our idea was to have IIS
>> >> >> running on the PC and the recorder controlled through a web page.
>> >> >>
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


.



Relevant Pages

  • Re: serial ports, threads and windows
    ... I've written a python app that r/w eight serial ports to control eight devices using eight threads. ... Then I put the app on on a virtual Windows machine running inside of vmware on the same Linux box. ... Vmware only lets me have four serial ports so I run the app against four serial ports using four threads. ... def abort: ...
    (comp.lang.python)
  • serial ports, threads and windows
    ... I've written a python app that r/w eight serial ports to control eight devices ... This all works very nicely in Linux. ... Then I put the app on on a virtual Windows machine running inside of vmware on ...
    (comp.lang.python)
  • Re: serial ports, threads and windows
    ... | I've written a python app that r/w eight serial ports to control eight devices ... | Then I put the app on on a virtual Windows machine running inside of vmware on ... Vmware only lets me have four serial ports so I run the ...
    (comp.lang.python)
  • Re: Reinstalling data using floppy disc. I want to reinstall data from
    ... Some of this equipment probably still use serial ports. ... Documents folder on your hard drive using Windows Explorer. ... I marked each of the discs 'Recovery Discs' and gave each a ...
    (microsoft.public.word.newusers)
  • Re: serial port access from asp.net
    ... The Windows API calls for serial ports don't ... >> by many people you cannot access serial ports from ASP.net. ... > app not work in an ASP.Net app? ...
    (microsoft.public.dotnet.framework.aspnet)