Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

Can any one help me out. I am trying to read from a serial port in an asp.net application.
I have downloaded and installed the ActiveX control from ActiveComport Serial Port Toolkit and have tried to implement it in the code behind, but it does not read anything..
Does any one know a way I can achieve this?

Thanks for any suggestions.

Chris
Posted

If it's a 3rd party library, it would be best to talk to their tech support.
 
Share this answer
 
First tell me why are u going for 3rd party ativeX control, to implement code behind.
are you tring to access the serilport of client PC/ Server???

if it is server side, you can use the Serial Port class directly...
 
Share this answer
 
Comments
Chriso82 21-Oct-10 15:23pm    
Hi Rajesh

I have tried using the serial port class but am getting authentication exception errors.
All I want to do is get the data from a serial port on a client pc into a text box on the web page.
From there I want to check that value against a values in a sql db and bring up the information on it.
Using the serial port class would be ideal. Do you have any idea how to with asp.net?

Thanks,

Chris
Rajesh Anuhya 22-Oct-10 1:27am    
see my answer below
Hi.,

So you want to access client Serial Port from your web pages , this leads to some security issues while accessing the client resources., but you can do it with embed Active X in your web pages., but client will get a warning while accessing this components.

Limitations:
[1] Your users will get a security warning prompting them to download the ActiveX component, even when you have had it digitally signed.

[2] If you decide to scrap your VB Comonent and go with a .NET ActiveX object, you're going to need to make sure the user has the .NET framework on his/her machine.

[3] Netscape/Mozilla is less than friendly with ActiveX components.

Thanks & Regards
Rajesh B
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900