支持 COM 的 .NET 用户控件

发布于 2024-08-26 06:57:25 字数 139 浏览 0 评论 0原文

我创建了一个启用 COM 的 .NET 用户控件,并且想知道将其部署给用户以在网页中使用该控件的最佳方法是什么?

出租车是解决这个问题的方法吗?我知道我需要重新调整用户计算机上的控制权。 常规的 msi 会更好更容易使用吗?

谢谢

I have created a COM enabled .NET User Control and am wondering what is the best way to deploy this to users to use the control in a web page ?

Is cab the way to go with this ? I understand that I will need to regasm the control on the user's machine.
Would a regular msi be better and easier to use for this ?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北风几吹夏 2024-09-02 06:57:25

实际上,如果 .net 程序集托管在 Web 服务器上,则无需注册它,只需使用重载的 标记:

<OBJECT id="Obj1" classid="Assembly.dll#Full.Namespace.ControlName">            

请参阅 http://support.microsoft.com/kb/317346

此用法非常强大,因为 .NET 程序集是通过使用新的零影响 Fusion 技术进行安装的,该技术无需将任何辅助信息写入用户注册表即可实现程序集安装。更新控件就像下载新副本一样简单(运行时会自动处理);从计算机中删除它就像从 Fusion 下载缓存中删除程序集一样简单。

另请参阅:如何:将 COM 互操作程序部署到 Internet Explorer

You actually don't need to register a .net assembly if it's hosted on a web server, you can just use the overloaded <OBJECT> tag:

<OBJECT id="Obj1" classid="Assembly.dll#Full.Namespace.ControlName">            

See http://support.microsoft.com/kb/317346:

This usage is very powerful, because .NET assemblies install by using the new zero-impact Fusion technology, which enables assembly installation without the need to write any secondary information to the user's registry. To update the control is as simple as downloading a new copy (which the Runtime takes care of automatically); removing it from the computer is as simple as removing the assembly from the Fusion download cache.

Also see: How To: Deploy COM Interop Programs to Internet Explorer

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文