简体   繁体   English

在ASP.NET Web应用程序上通过Internet访问用户的USB连接外围设备/设备

[英]Access user's USB-connected peripheral/device over the internet on an ASP.NET web application

I was wondering, is it possible to take control of an end-user's USB-connected device or peripheral from an ASP.NET web application via C# with the libUsbDotNet library? 我想知道,是否可以通过带有libUsbDotNet库的C#通过ASP.NET Web应用程序控制最终用户的USB连接设备或外围设备?

In other words, be able to control certain functions of USB devices from a website? 换句话说,能够从网站控制USB设备的某些功能吗?

I would think that would be pretty cool. 我认为那会非常酷。

You've got to keep in mind that browser are working to keep you from doing this. 你必须记住,浏览器正在努力阻止你这样做。

You would actually have to write an ActiveX Component, to be able to do something like this. 你实际上必须编写一个ActiveX组件,才能做到这样的事情。

no. 没有。 for many reasons. 出于很多原因。

the most salient reason that 'no' is the answer to your question is that the lib runs on the server, not the client. 回答“ no”的最明显的原因是该lib在服务器而不是客户端上运行。

a more pragmatic reason is that browsers are engineered to be sandboxed. 更为实际的原因是浏览器被设计为沙盒化。 creating an activeX component is the only realistic way around this but the technology and deployment is fraught with complications and then you have to consider the limited support for activex across browser/platforms. 创建一个activeX组件是解决这个问题的唯一现实方法,但是技术和部署充满了复杂性,然后你必须考虑跨浏览器/平台对activex的有限支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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