Web浏览器 Silverlight 4 控制和 UNC 共享
我需要打开位于 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是不可能的,因为 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.