简体   繁体   中英

How can read/write serial port of client machine from ASP.Net Web application

I am working on Smart Card Reader application. A Card Reader Device attached to serial port via usb and then by the help of an API (DLL) I can communicate with Device. This all work fine in Windows Form Application. But now we need to create an asp.net web application so that our customer can use this device from any location via web. I have created a web application and used this DLL working fine in web application on localhost. But how can do this, that this will work on any of client browser and communicate client's serial port via DLL.

you can't import your dll in the client. You'll have to use ActiveX, Java, Silverlight or even Flash to access the card reader from the browser. And even so, the browser will ask the user authorization to break the browser safety "sandboxing" preventing access to local resource from the server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM