Solved

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

Posted on 2010-11-16
2
354 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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
optimize  c# code 7 48
crm development 2 34
c# code 19 56
Align Buttons next to each other 2 11
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 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

6 Experts available now in Live!

Get 1:1 Help Now