Internet Explorer的XBAP块使用ClickOnceExplorer、Internet、ClickOnce、XBAP

2023-09-06 11:29:13 作者:那傷,狠精致

今天我创造了我的第一个 XBAP 应用程序,并部署的ClickOnce ,.NET 4.5。 微软并没有与记录以外的所有小东西的一个伟大的工作 - 它是如何实际需要部署?我的意思是真正的...

在我开始IIS服务。 配置在我的项目发布设置的URL位置。 在安全选项卡我检查了启用的ClickOnce安全设置,然后选择完全信任的应用程序,因为我使用的是本地计算机的资源。 在签名我创建了一个测试证书并安装它相关的可靠的文件夹。

这几乎是工作,但IE浏览器阻止了,他说的应用类型是禁用的。照片 我GOOGLE了这个问题,发现所有的网站提供了简单的解决方案 - 只是改变IE中的安全配置,让您的安全区域本 XAML 设置 - 这就是它! BR> 好极了,它可以完美运行在我的开发环境。 但是,如果我的应用程序的签名,为什么它被封锁? 或者至少,我怎么能验证这是一个签约的问题? 看来,对互联网区只有几个街区IE默认安全 WPF 应用程序,无论签约状态。但在这种情况下,为什么 XBAP 甚至存在?我今天要说的:OMGGG我无法相信这居然worksss !!!,但几个小时后,我意识到,我发现了一个巨大的岩石金子做的,但这样是它的光泽,我不能把它捡起来我的车,但什么是我该做的吗?

不管怎么说,我会很高兴,终于找到了一个解决方案来部署 XBAP 应用程序,而不要求用户更改其IE浏览器的安全设置。 否则,给出的要求:

使用本机DLL(这就是为什么我没有使用的Silverlight )。 从浏览器中运行(或IE)应用程序。 没有使用PC的本地资源。 (也许我可以使 XBAP 在部分信任模式下工作)。

它是否改变什么? 有没有更好的方法?

解决方案   

...没有要求用户更改部署XBAP应用程序的解决方案   其IE浏览器的安全设置。

在我看来,该用户将始终需要设置或更改IE的XAML浏览器应用程序为启用或提示为已任的XBAP运行。而在IE上他们被默认禁用。

I created today my first xbap application, and deployed with ClickOnce, .NET 4.5. Microsoft did a great job with documenting everything except the small thing of - how does it actually needs to be deployed?? I mean for real...

I started an IIS service. Configured in my project publish settings the URL location. In 'Security' tab i checked the 'Enable ClickOnce security settings', and chose 'full-trust application' since I'm using local PC resources. In 'Signing' I created a 'Test Certificate' and installed it to the relevant 'Trusted' folders.

It almost works, but IE blocks it, saying the application type is disabled. I googled the problem and found the simple solution that all web sites offer - just change the security configuration in IE, enable this XAML settings in your security zone - and that's it! Fantastic, it works perfect in my development environment. But if my app is "signed", why is it being blocked? Or at least, how can i verify that this is a signing issue? It seems that IE default security for 'internet' zone just blocks WPF apps regardless of the signing state. But in that case, why xbap even exists? I did say today: "OMGGG I can't believe this actually worksss!!!", but few hours later I realized I found a huge rock made of gold but I can't pick it up to my truck so yeah it's shiny but what am I suppose to do with that?

Internet Explorer 10 64位

Anyways, I'd be glad to finally found a solution for deploying xbap apps without asking the user to change its IE security settings. otherwise, given the requirements:

Use native DLLs (that's why i didn't use Silverlight). Application that runs from a browser (or from IE). Without using PC local resources. (maybe i could make the xbap work on partial trust mode).

Does it change anything? Is there a better approach?

解决方案

...a solution for deploying xbap apps without asking the user to change its IE security settings.

It looks to me that the users will always need to set or change the "XAML browser applications" in IE to 'Enable' or 'Prompt' to have any XBAPs run. And on IE they are disabled by default.

 
精彩推荐
图片推荐