.NET 客户端与 ActiveX(或其他方法?)

发布于 2024-07-13 01:31:25 字数 376 浏览 6 评论 0原文

是否有人有任何白皮书或文章可以比较和对比需要 .NET 客户端组件且正在考虑的选项是 ActiveX 或 .Net 组件解决方案的 Web 架构?

我有一位客户希望在架构上推荐 .Net 客户端方法而不是 Active X。但是,对于 ActiveX 有一些强烈的意见。 我想做的就是为我们的方向收集更多的背景和行业支持。

我个人不会建议任何人再编写 ActiveX 组件。 如果他们需要浏览器部署模型中的增强功能,我通常建议通过 XBAP 使用 WPF 或编写 Silverlight 应用程序。 理想情况下,我想讨论一下标准 Web、增强 Web (silverlight) 或平台优化 (WPF) 的优缺点。

你们能帮我们指出正确的方向吗? 有什么想法吗?

Does anyone have any white papers or articles that would compare and contrast a web architecture where a .NET client component is required and the options being considered are ActiveX or a .Net component solution?

I have a customer that wants to architecturally recommend a .Net client approach over Active X. However, there are some strong opinions for ActiveX. What I would like to do is gather more background and industry support for our direction.

I personally would not recommend that anybody write an ActiveX component any more. If they are in need on enhanced features in the browser deployment model, I would generally recommend using WPF via XBAP or writing a Silverlight application. Ideally, I'd like to have a conversation about the pros / cons of standard web, augmented web (silverlight), or platform optimized (WPF).

Is this something you guys can help point us in the right direction? Any thoughts?

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

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

发布评论

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

评论(3

南渊 2024-07-20 01:31:25

上面的链接很好。 我想澄清一下,虽然 XBAP 和 ClickOnce 应用程序默认在沙箱中运行,但它们可以提升到更高的信任度。 这对于 XBAP 来说比较棘手,因为它需要客户计算机上存在代码访问安全策略,并且没有简单的方法可以实现它(除了网络启动的 MSI 之外,这达不到目的)。

单击一次应用程序可以指定它们需要在清单中提升权限(这是在项目设置中完成的)。 当应用程序首次启动时,如果应用程序需要比默认区域(通常是互联网)更多的权限,系统会提示用户并发出警告,但他们可以批准提升的权限。

Silverlight 仅在安全沙箱中运行,无法提升。 有一种安全的方式来访问本地存储,但无法直接与 USB 设备等其他硬件交互。 Silverlight 非常适合(几乎)零接触应用程序部署,只要应用程序能够在 Silverlight 提供的安全性和功能范围内运行即可。 然而,Silverlight 确实在不断发展,并且这些界限也在不断扩大。 例如,通过Live Framework,我们现在可以在桌面上以离线模式在浏览器之外运行Silverlight应用程序并进行数据同步。 我有一个关于的截屏视频频道 9

我也会避免使用 ActiveX,除非您无法在这些其他配置文件之一中满足您的需要。 随着每个浏览器版本的发布,ActiveX 受到越来越多的限制,并且与其他替代方案相比,它更难控制且安全性也更低。 ActiveX 可能是 IT 专业人员的一个管理难题,这反过来又使得在企业中部署应用程序变得更具挑战性。

希望对您的项目有所帮助并祝您好运。

Great links above. I'd like to clarify that though XBAPs and ClickOnce apps run in a sandbox by default, they can be elevated to higher trust. This is trickier to do with XBAP as it requires a Code Access Security policy to exist on the customers machine and there is no easy way to get it there (other than a web-launched MSI which defeats the purpose).

Click-Once applications can specify that they need elevated privileges in the manifest (this is done in project settings). When the application is first launched, if the app needs more privileges than the default zone (usually Internet) the user is prompted and warned but they can approve the elevated rights.

Silverlight runs in a secure sandbox only with no way to elevate. There is a secure way to access local storage but there is no way to interact directly with other hardware like USB devices. Silverlight is great for (nearly) zero-touch application deployment, so long as the application can live within the security and feature boundaries that Silverlight provides. Silverlight does continue to evolve however, and those boundaries continue to expend. With the Live Framework, for example, we can now run Silverlight applications outside of the browser on the desktop in offline mode with data synchronization. I've got a screencast about that on channel 9.

I too would avoid ActiveX unless you just can't fit what you need in one of these other profiles. ActiveX is getting more and more restricted with every browser release and it's a lot harder to control and a lot less secure than the alternatives. ActiveX can be a management headache for IT Pros, which in turn makes it more of challenge to get your app deployed in an enterprise.

Hope that helps and good luck with your project.

骄傲 2024-07-20 01:31:25

我在 2007 年写过这篇文章 - 今天仍然适用 - 尽管我最近看到人们对将 Silverlight 用于业务线应用程序有很大兴趣。

I wrote about this in 2007 - it's still applicable today - although I am seeing a great amount of interest in using Silverlight for Line Of Business applications lately.

泪冰清 2024-07-20 01:31:25

安全性通常是您最强的卖点。 XBAP 应用程序始终在沙箱中运行,而 ActiveX 则不然。

我找到了以下 Microsoft 博客条目: XBAP = 下一代 ActiveX?< /a> 有帮助。

Security is often your strongest selling point. XBAP applications always run in a sandbox, where ActiveX does not.

I found the following microsoft blog entry: XBAP = next-generation ActiveX? to be helpful.

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