473,396 Members | 2,093 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,396 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 4914
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.