C#. -如何使用网站上的本地用户dll? [已删除其他语言] [英] c#. - how use local user dll from website? [removed other language]

查看:67
本文介绍了C#. -如何使用网站上的本地用户dll? [已删除其他语言]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要帮助,问题是我在PC桌面(用户的PC)中有一个用户dll,并且我需要在网页中使用该dll,因为DLL公开了用户PC的功能.如何从网站调用该dll?

[已删除其他语言]

:confused:

Hi,

I need help please, the problem is that i have a user dll in a Pc desktop (user''s pc) and i need to use that dll in a web page because dll expose functionality of the user''s pc. How i can do it to call that dll from the website?

[removed other language]

:confused:

推荐答案

仅英语.在ASP.NET上购买一本书并阅读.然后,停止思考如果网页可以在用户文件系统中搜索dll并执行它们,那么网络的安全性如何.

不,你不能那样做.
English only. Buy a book on ASP.NET and read it. Then, stop to think how secure the web would be if a web page could search a users file system for dlls and execute them.

No, you can''t do that.


armlaz777写道:
armlaz777 wrote:

你怎么看这个问题可以解决吗?

说不可能"是不可能的.

How you think that the problem can be solve?.

Say "it''s impossible" isn''t an option.



你知道第一个答案吗?原因是不允许这样做的.这是为了防止用户打开可在其系统上执行任何代码的网页,例如特洛伊木马,病毒等.

嗯,也许有可能,但是我认为您需要重写Web浏览器才能实现它.



Did you understand the first answer? There is a reason that this is not allowed; it is to protect users from opening web pages that can then execute any code on their system, like trojans, viruses etc.

Well maybe it''s possible, but I think you will need to rewrite the web browser to make it happen.


说这不可能"选项."

好吧,你提出的问题是不可能的.说那不是一个选择"不会改变它.

您可以将ActiveX控件放入网页中,但我不确定文件系统需要多少访问权限.当然,会警告您的用户您的页面不安全,并询问他们是否信任您,但是如果他们的文件系统中已经有您自己的dll,我认为这不是问题.如果该ActiveX控件具有您所需的访问权限,则问题将变为.我想象根据ActiveX控件的功能,您可能会发现很多反间谍软件,反病毒等程序也会尝试阻止您.
"Say "it''s impossible" isn''t an option."

Well, the question you asked is impossbile. Saying ''that''s not an option" will not change that.

You can put a ActiveX control inside a webpage, and I''m not sure how much access that would have to the file system. Of course, your users would be warned that what your page does is not secure, and asked if they trust you, but if they already have a dll of yours in their file system, I assume this is not an issue. The question will then become, if that ActiveX control has the access you require. I imagine that depending on what it is your ActiveX control does, that you may find that a lot of anti spyware, anti virus, etc programs will also try to block you.


这篇关于C#. -如何使用网站上的本地用户dll? [已删除其他语言]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆