Re: serial port access from asp.net
- From: "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Apr 2005 12:19:14 -0400
> 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.
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>
.
- Follow-Ups:
- Re: serial port access from asp.net
- From: Al the programmer
- Re: serial port access from asp.net
- References:
- serial port access from asp.net
- From: Al the programmer
- Re: serial port access from asp.net
- From: Brock Allen
- Re: serial port access from asp.net
- From: Shawn H. Mesiatowsky
- Re: serial port access from asp.net
- From: Al the programmer
- Re: serial port access from asp.net
- From: Kevin Spencer
- Re: serial port access from asp.net
- From: Al the programmer
- Re: serial port access from asp.net
- From: Kevin Spencer
- Re: serial port access from asp.net
- From: Al the programmer
- serial port access from asp.net
- Prev by Date: Re: Newbie Needs Help!
- Next by Date: Re: Hiding WebPage name in address bar
- Previous by thread: Re: serial port access from asp.net
- Next by thread: Re: serial port access from asp.net
- Index(es):
Relevant Pages
|