如何在 Intranet 上运行完全信任 XBAP?
我制作了一个托管旧 WinForms 控件的 WPF 浏览器应用程序(我还没有完全迁移到 WPF)。 使用 WindowsFormsHost 意味着我的浏览器应用程序需要完全信任才能运行。 这对我来说不是问题,因为这个应用程序只适合在我公司的内联网上运行。 但是,当我将 xbap 部署到网络共享后,它拒绝运行,并显示“未授予信任”。
我可以使用哪些方法向存储在公司 Intranet 上的 XBAP 应用程序授予完全信任?
I've made a WPF Browser Application that hosts old WinForms controls (I haven't migrated fully to WPF yet). Using WindowsFormsHost means my Browser App requires Full Trust to run. This is not a problem for me since this app is only meant to be run on the intranet at my company. However, after I deploy the xbap to a network share, it refuses to run, saying "Trust not granted".
What are the methods I can use to grant Full Trust to XBAP applications stored on my companies intranet?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
到目前为止,我已经找到了两种方法来做到这一点。 通过 在目标计算机上安装证书。
或者通过更简单的方法,仅适用于内网 此处:
所以我就是这样做的,并且它有效。 以下是我如何让它工作的详细步骤:
现在,此方法的唯一问题是我必须将此更改部署到数百台计算机。 那么也许还有更简单的方法来做到这一点?
So far, I've found 2 ways to do this. Through a really complicated method of installing certificates on the target machine.
Or through a simpler method, which is only suitable for intranets here:
So I did just that, and it works. Here's the detailed steps how I got it to work:
Now the only problem with this method, is that I have to deploy this change to hundreds of machines. So maybe there's still a simpler way to do this?
它将是 可能在计划于 2010 年上半年发布的 .Net 4.0 中实现。它现在处于测试阶段,但它附带了 上线许可证 允许您“上线”使用 .Net 框架的测试版。
It will be possible in .Net 4.0 planning to be released in the first half of 2010. It is now in a beta phase, but it comes with a go live license which allows you to 'go live' even with a beta version of the .Net framework.
虽然我没有尝试过,但 XBAP 的路径是否已添加为受信任站点?
Although I haven't tried this, is the path to the XBAP added as a trusted site?