Solved

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

Posted on 2010-11-16
2
367 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now