Solved

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

Posted on 2010-11-16
2
395 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

717 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