?
Solved

ASP.NET C#: Communicating with user COM port from website

Posted on 2010-11-16
2
Medium Priority
?
407 Views
Last Modified: 2012-06-27
Hello

I am making a website using ASP.NET (C#), and on that website I have to communicate with a keyreader, which is connected to the end users PC via the COM port.

Can anyone tell me how to do this? I know that I will most likely need some kind of ActiveX component, but I have only found one on the net (from ActiveXperts) but it crashes when I try and use it.

Any help will be much appreciated.

Regards
Søren Augustesen  
0
Comment
Question by:poultarp
2 Comments
 
LVL 3

Expert Comment

by:manlimnag
ID: 34145343
Also keep in mind that activex are supported on IE. The other option is create a plugin which user will have to donwload and install on pc. And plugin could use web services to push anything from local machine. From page you force download file with the information needed by plugin and plugin is having associativity with that file. Plugin has all the business functionality you need to provide.
 
0
 
LVL 8

Accepted Solution

by:
cubaman_24 earned 2000 total points
ID: 34153920
Hello:
It seems you'll have to build your activex from scratch. The good news is that you can write your acivex component in c#, here you'll find a good tutorial.
http://dotnetslackers.com/articles/csharp/WritingAnActiveXControlInCSharp.aspx

Here is another tutorial about communication via com port:
http://msmvps.com/blogs/coad/archive/2005/03/23/39466.aspx

You will also need some documentation about which functions you may call on your hardware drivers. Maybe some headers will be fine, or even better,  some primary interop assemblies (PIA) provided by your hardware vendor.

Best regards and happy coding ;-)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Screencast - Getting to Know the Pipeline
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question