473,287 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

System.IO.Ports.SerialPort

is there a way to embed the System.IO.Ports.SerialPort object in my html . so
that the client can access to a device connected to his SerialCOM ?

i tried to wrap the System.IO.Ports.SerialPort in my own component and then
put it in <object> but it doesnt seem to work, any suggestions?
May 11 '06 #1
7 4910
I doubt the security sandbox of the user's browser would allow such a thing.
You'll probably need a thick client such as an ActiveX control or Windows
Forms application.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Tamir.D" <Ta*****@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
is there a way to embed the System.IO.Ports.SerialPort object in my html .
so
that the client can access to a device connected to his SerialCOM ?

i tried to wrap the System.IO.Ports.SerialPort in my own component and
then
put it in <object> but it doesnt seem to work, any suggestions?

May 11 '06 #2

You can run .NET components on the client side browser provided that your
client has the .NET framework installed and willing to allow you to do so.

SA

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eK**************@TK2MSFTNGP02.phx.gbl...
I doubt the security sandbox of the user's browser would allow such a
thing.
You'll probably need a thick client such as an ActiveX control or Windows
Forms application.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Tamir.D" <Ta*****@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
is there a way to embed the System.IO.Ports.SerialPort object in my html
. so
that the client can access to a device connected to his SerialCOM ?

i tried to wrap the System.IO.Ports.SerialPort in my own component and
then
put it in <object> but it doesnt seem to work, any suggestions?


May 11 '06 #3
but the standard .net seetings would not allow the component to access
serial ports. the users will have to authorize your component to do this
using the caspol.exe utility.

-- bruce (sqlwork.com)

"MSDN" <sq**********@hotmail.com> wrote in message
news:e4****************@TK2MSFTNGP02.phx.gbl...

You can run .NET components on the client side browser provided that your
client has the .NET framework installed and willing to allow you to do so.

SA

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eK**************@TK2MSFTNGP02.phx.gbl...
I doubt the security sandbox of the user's browser would allow such a
thing.
You'll probably need a thick client such as an ActiveX control or Windows
Forms application.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Tamir.D" <Ta*****@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
is there a way to embed the System.IO.Ports.SerialPort object in my html
. so
that the client can access to a device connected to his SerialCOM ?

i tried to wrap the System.IO.Ports.SerialPort in my own component and
then
put it in <object> but it doesnt seem to work, any suggestions?



May 11 '06 #4
Yes some security has to be set properly. I would use this in Intranet or
Wide-Intranet-Corp situations.

SA
"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com> wrote
in message news:eW**************@TK2MSFTNGP05.phx.gbl...
but the standard .net seetings would not allow the component to access
serial ports. the users will have to authorize your component to do this
using the caspol.exe utility.

-- bruce (sqlwork.com)

"MSDN" <sq**********@hotmail.com> wrote in message
news:e4****************@TK2MSFTNGP02.phx.gbl...

You can run .NET components on the client side browser provided that your
client has the .NET framework installed and willing to allow you to do
so.

SA

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eK**************@TK2MSFTNGP02.phx.gbl...
I doubt the security sandbox of the user's browser would allow such a
thing.
You'll probably need a thick client such as an ActiveX control or
Windows Forms application.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Tamir.D" <Ta*****@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
is there a way to embed the System.IO.Ports.SerialPort object in my
html . so
that the client can access to a device connected to his SerialCOM ?

i tried to wrap the System.IO.Ports.SerialPort in my own component and
then
put it in <object> but it doesnt seem to work, any suggestions?



May 11 '06 #5
so what do i need to write inside my <object> tag? what is the classid for
SerialPort?

"MSDN" wrote:
Yes some security has to be set properly. I would use this in Intranet or
Wide-Intranet-Corp situations.

SA
"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com> wrote
in message news:eW**************@TK2MSFTNGP05.phx.gbl...
but the standard .net seetings would not allow the component to access
serial ports. the users will have to authorize your component to do this
using the caspol.exe utility.

-- bruce (sqlwork.com)

"MSDN" <sq**********@hotmail.com> wrote in message
news:e4****************@TK2MSFTNGP02.phx.gbl...

You can run .NET components on the client side browser provided that your
client has the .NET framework installed and willing to allow you to do
so.

SA

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eK**************@TK2MSFTNGP02.phx.gbl...
I doubt the security sandbox of the user's browser would allow such a
thing.
You'll probably need a thick client such as an ActiveX control or
Windows Forms application.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Tamir.D" <Ta*****@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
> is there a way to embed the System.IO.Ports.SerialPort object in my
> html . so
> that the client can access to a device connected to his SerialCOM ?
>
> i tried to wrap the System.IO.Ports.SerialPort in my own component and
> then
> put it in <object> but it doesnt seem to work, any suggestions?



May 11 '06 #6
Read this that might help you out.

http://msdn.microsoft.com/msdnmag/is...2/01/UserCtrl/

SA

"Tamir.D" <Ta*****@discussions.microsoft.com> wrote in message
news:7C**********************************@microsof t.com...
so what do i need to write inside my <object> tag? what is the classid for
SerialPort?

"MSDN" wrote:
Yes some security has to be set properly. I would use this in Intranet
or
Wide-Intranet-Corp situations.

SA
"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com>
wrote
in message news:eW**************@TK2MSFTNGP05.phx.gbl...
> but the standard .net seetings would not allow the component to access
> serial ports. the users will have to authorize your component to do
> this
> using the caspol.exe utility.
>
> -- bruce (sqlwork.com)
>
> "MSDN" <sq**********@hotmail.com> wrote in message
> news:e4****************@TK2MSFTNGP02.phx.gbl...
>>
>> You can run .NET components on the client side browser provided that
>> your
>> client has the .NET framework installed and willing to allow you to do
>> so.
>>
>> SA
>>
>> "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
>> news:eK**************@TK2MSFTNGP02.phx.gbl...
>>>I doubt the security sandbox of the user's browser would allow such a
>>>thing.
>>> You'll probably need a thick client such as an ActiveX control or
>>> Windows Forms application.
>>>
>>> --
>>> I hope this helps,
>>> Steve C. Orr, MCSD, MVP
>>> http://SteveOrr.net
>>>
>>>
>>> "Tamir.D" <Ta*****@discussions.microsoft.com> wrote in message
>>> news:1F**********************************@microsof t.com...
>>>> is there a way to embed the System.IO.Ports.SerialPort object in my
>>>> html . so
>>>> that the client can access to a device connected to his SerialCOM ?
>>>>
>>>> i tried to wrap the System.IO.Ports.SerialPort in my own component
>>>> and
>>>> then
>>>> put it in <object> but it doesnt seem to work, any suggestions?
>>>
>>>
>>
>>
>
>


May 11 '06 #7
i read the article and followed all the steps but the it doesnt work, im
using VS 2005 and the artitcle was in 2002 so maybe the project upgrade
ruined something. any way i still cant create the control i need, any
suggestions?

"MSDN" wrote:
Read this that might help you out.

http://msdn.microsoft.com/msdnmag/is...2/01/UserCtrl/

SA

"Tamir.D" <Ta*****@discussions.microsoft.com> wrote in message
news:7C**********************************@microsof t.com...
so what do i need to write inside my <object> tag? what is the classid for
SerialPort?

"MSDN" wrote:
Yes some security has to be set properly. I would use this in Intranet
or
Wide-Intranet-Corp situations.

SA
"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com>
wrote
in message news:eW**************@TK2MSFTNGP05.phx.gbl...
> but the standard .net seetings would not allow the component to access
> serial ports. the users will have to authorize your component to do
> this
> using the caspol.exe utility.
>
> -- bruce (sqlwork.com)
>
> "MSDN" <sq**********@hotmail.com> wrote in message
> news:e4****************@TK2MSFTNGP02.phx.gbl...
>>
>> You can run .NET components on the client side browser provided that
>> your
>> client has the .NET framework installed and willing to allow you to do
>> so.
>>
>> SA
>>
>> "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
>> news:eK**************@TK2MSFTNGP02.phx.gbl...
>>>I doubt the security sandbox of the user's browser would allow such a
>>>thing.
>>> You'll probably need a thick client such as an ActiveX control or
>>> Windows Forms application.
>>>
>>> --
>>> I hope this helps,
>>> Steve C. Orr, MCSD, MVP
>>> http://SteveOrr.net
>>>
>>>
>>> "Tamir.D" <Ta*****@discussions.microsoft.com> wrote in message
>>> news:1F**********************************@microsof t.com...
>>>> is there a way to embed the System.IO.Ports.SerialPort object in my
>>>> html . so
>>>> that the client can access to a device connected to his SerialCOM ?
>>>>
>>>> i tried to wrap the System.IO.Ports.SerialPort in my own component
>>>> and
>>>> then
>>>> put it in <object> but it doesnt seem to work, any suggestions?
>>>
>>>
>>
>>
>
>


May 12 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: henrycortezwu | last post by:
Hi All, I'm trying to connect to a virtual port (COM19, OUTGOING, "Bluetooth Serial Port") using VS2005 System.IO.Ports. When I ran the ff code below here's what happens. 1) VS2005 Compiles w/o...
3
by: SamB | last post by:
Hello all! MY CASE: I'm using VB.net 2005 express on a Dell Laptop with an USB Bluetooth key. I'm trying to send data to a pocketPC. COM numbers changes each time i've got a new bluetooh...
5
by: LongBow | last post by:
Hello, Is there a way, in .NET, to determine what are the avialable Serial (Communications) Ports on a Windows OS and is there a way to determine that port isn't being use other than attempting...
4
by: =?Utf-8?B?S3Jpc3RvZmZlciBQZXJzc29u?= | last post by:
Does anyone know if it's possible to get the Win32 handle to the serial port used under the hood in System.IO.SerialPort? The reason I want it is so I'd be able to make changes the DCB struct. I...
3
by: Mugunth | last post by:
Hi, I've a strange problem with serial port class of .NET Framework 2.0 I use com0com (Null Modem COM Port emulator) to emulate a virtual port. This application creates virtual com port pairs...
3
by: Bandu | last post by:
hi, i'm using serial port functionality provided by .net framework 2.0 using system.io.ports. Is there anyway that i can set DTR/DSR handshaking? Regards, Bandu
0
by: Bandu | last post by:
Hi, is System.IO.Ports.SerialPort supported in 64bit? I'm writing C# application and its worked fine with 32 bit. But in 64-bit, System.IO.Ports.SerialPort never fire up the Event Handler (e.g....
1
by: JDS | last post by:
I am getting the following error in my application: System.UnauthorizedAccessException was unhandled Message="Access to the port is denied." Source="System" StackTrace: at...
3
by: cmdolcet69 | last post by:
I have these two subs that are being called on two different timers threads. It seems that when I get to the DoDualDSIWorkCOM2 that it keeps passing in the sender and the e as the first serial com...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.