Wednesday, March 28, 2012

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?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" <Tamir.D@.discussions.microsoft.com> wrote in message
news:1F4238ED-0121-482A-9359-10B1F0593C8C@.microsoft.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?
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]" <Steve@.Orr.net> wrote in message
news:eK0s3eQdGHA.3888@.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" <Tamir.D@.discussions.microsoft.com> wrote in message
> news:1F4238ED-0121-482A-9359-10B1F0593C8C@.microsoft.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?
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" <sql_agentman@.hotmail.com> wrote in message
news:e4%2340ARdGHA.3888@.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]" <Steve@.Orr.net> wrote in message
> news:eK0s3eQdGHA.3888@.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" <Tamir.D@.discussions.microsoft.com> wrote in message
>> news:1F4238ED-0121-482A-9359-10B1F0593C8C@.microsoft.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?
>>
>>
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_r_u_c_e_removeunderscores@.sqlwork.com> wrote
in message news:eWT40VRdGHA.4128@.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" <sql_agentman@.hotmail.com> wrote in message
> news:e4%2340ARdGHA.3888@.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]" <Steve@.Orr.net> wrote in message
>> news:eK0s3eQdGHA.3888@.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" <Tamir.D@.discussions.microsoft.com> wrote in message
>>> news:1F4238ED-0121-482A-9359-10B1F0593C8C@.microsoft.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?
>>>
>>>
>>
>>
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_r_u_c_e_removeunderscores@.sqlwork.com> wrote
> in message news:eWT40VRdGHA.4128@.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" <sql_agentman@.hotmail.com> wrote in message
> > news:e4%2340ARdGHA.3888@.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]" <Steve@.Orr.net> wrote in message
> >> news:eK0s3eQdGHA.3888@.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" <Tamir.D@.discussions.microsoft.com> wrote in message
> >>> news:1F4238ED-0121-482A-9359-10B1F0593C8C@.microsoft.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?
> >>>
> >>>
> >>
> >>
>
Read this that might help you out.

http://msdn.microsoft.com/msdnmag/i...02/01/UserCtrl/

SA

"Tamir.D" <Tamir.D@.discussions.microsoft.com> wrote in message
news:7C59DB6A-82AE-41B6-ACCB-936BC5723A66@.microsoft.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_r_u_c_e_removeunderscores@.sqlwork.com>
>> wrote
>> in message news:eWT40VRdGHA.4128@.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" <sql_agentman@.hotmail.com> wrote in message
>> > news:e4%2340ARdGHA.3888@.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]" <Steve@.Orr.net> wrote in message
>> >> news:eK0s3eQdGHA.3888@.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" <Tamir.D@.discussions.microsoft.com> wrote in message
>> >>> news:1F4238ED-0121-482A-9359-10B1F0593C8C@.microsoft.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?
>> >>>
>> >>>
>> >>
>> >>
>>>>
>>
>
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/i...02/01/UserCtrl/
> SA
> "Tamir.D" <Tamir.D@.discussions.microsoft.com> wrote in message
> news:7C59DB6A-82AE-41B6-ACCB-936BC5723A66@.microsoft.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_r_u_c_e_removeunderscores@.sqlwork.com>
> >> wrote
> >> in message news:eWT40VRdGHA.4128@.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" <sql_agentman@.hotmail.com> wrote in message
> >> > news:e4%2340ARdGHA.3888@.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]" <Steve@.Orr.net> wrote in message
> >> >> news:eK0s3eQdGHA.3888@.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" <Tamir.D@.discussions.microsoft.com> wrote in message
> >> >>> news:1F4238ED-0121-482A-9359-10B1F0593C8C@.microsoft.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?
> >> >>>
> >> >>>
> >> >>
> >> >>
> >> >> >>
> >>
> >>
>

0 comments:

Post a Comment