创建浏览磁盘的activex .net [英] Create activex .net that browse a disk

查看:83
本文介绍了创建浏览磁盘的activex .net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!
我创建了一个简单的acreivex,在.net中借用我的文件.....(我使用vs 2010)
简单的问题是:
当我使用folderdialog控件时,在网页中出现错误IO,我无权使用此....

我尝试对.dll进行签名.但是当我在vs 2010上对dll进行签名时,activex不会出现在wbe页面中.很简单,它是不可见的....

如何在此Activex中使用文件夹对话框选项和其他文件类?

在此先感谢.

Hi to all!!
I create a simple acrivex that borwse my file..... in .net (i''m using vs 2010)
the simple question is :
When i use folderdialog control , in the web page there''s an error IO , i''ve not permission to use this....

I try to sign the .dll.. but when i sign the dll by vs 2010 , the activex don''t appare in the wbe page.... no error. simple it''s invisible....

How can i use folder dialog option and other file class in this activex ??

Thanks in Advance.

推荐答案

不,您没有在.NET中创建ActiveX组件.编译器无法针对构建真正的ActiveX组件.您创建了一个COM公开的库.

用于对代码签名的证书必须对浏览器可验证.如果您使用的证书是在计算机上生成的,则它将无法正常工作.浏览器无法验证证书的真实性.您必须从公共证书颁发机构(例如Verisign)获得代码签名证书.

如果客户端未安装适当版本的.NET Framework(无论您构建代码所针对的版本),则组件将根本无法工作.
No, you didn''t create an ActiveX component in .NET. The compilers cannot target building a true ActiveX component. You created a COM-exposed library.

The certificate you use to sign the code must be verifiable to a browser. If you''re using a cert you generated yourself on your machine, it won''t work. The browser has no way of verifying the authenticity of the cert. You have to get a code-signing cert from a public certificate authority, like Verisign.

If the client does not have the appropriate version of the .NET Framework installed (whatever version you built your code against), your component won''t work at all.


这篇关于创建浏览磁盘的activex .net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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