Re: serial port access from asp.net

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



> The problem is not permissions. ASPNET and IUSR have administrator
> priviledges on the computer. The Windows API calls for serial ports don't
> work under ASP.net.

Well, darn. I suppose my apps only LOOK like they work...

Then again, I didn't copy them from anything.

--
HTH,

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

"Al the programmer" <Altheprogrammer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:B8924CFF-D490-4404-8BC9-7A761C4CA330@xxxxxxxxxxxxxxxx
> The problem is not permissions. ASPNET and IUSR have administrator
> priviledges on the computer. The Windows API calls for serial ports don't
> work under ASP.net.
>
>
> "Kevin Spencer" wrote:
>
>> >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: 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)
  • Serial port virtualizer
    ... I'm looking for a windows and Linux driver that will support up to 128 ... virtual serial ports, but use TCP/IP to communicate between 2 computers. ...
    (comp.os.linux.misc)
  • Re: CE virgin, looking for guidance in finding things
    ... by EmbeddedFusion come with the Windows CE OS already on them and you can ... I need 4 serial ports, ... everything I'm ever likely to need (say, 6 serial ports, 2 USB ports, ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Turbo Delphi Explorer - Serial Ports
    ... Yes, you can access serial ports from Win32 API, so indeed there are no ... Thanks, I'd visited there, and much seemed to be "components" and the Turbo ...
    (borland.public.delphi.non-technical)