Web浏览器 Silverlight 4 控制和 UNC 共享

发布于 2024-08-27 01:10:53 字数 109 浏览 14 评论 0原文

我需要打开位于 UNC 共享上的 WebBrowser 控件 (SL 4) 中的文档,我认为如果不在客户端框中安装某些内容,这是不可能的...(COM 对象、物理链接...)

您认为如何?

I need to open documents in the WebBrowser control (SL 4) which is located on a UNC share, i think it's not possible without installing something on the client box... (COM object, physical link...)

What do you think ?

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

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

发布评论

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

评论(1

要走干脆点 2024-09-03 01:10:53

这是不可能的,因为 UNC 共享的概念被视为“跨方案”,类似于您无法从 https:// 服务的应用程序导航到 http:// 页面。

您唯一的选择是使用 COM 直接打开对象。使用 Windows shell/脚本主机这非常简单,它将能够向任何经过身份验证的 UNC 位置发送 shell 运行命令。

This is not possible, as the concept of a UNC share is considered "cross-scheme", similar to how you can't navigate to an http:// page from an https:// served application.

Your only option is to use COM to open the objects directly. This is simple enough using the Windows shell/scripting host, it will be able to send a shell run command for any UNC location that is authenticated.

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