xbap在iframe中给出错误

问题描述:

当我在IE中运行xbap时,它运行完美,

当我在iframe中使用时它给予信任而不提供错误,

错误描述如下





平台版本信息

Windows:6.3.9600.0(Win32NT)

公共语言运行时:2.0.50727.8009

System.Deployment.dll:2.0.50727.8012(FX35W81RTMGDR.050727-8000)

mscorwks.dll:2.0.50727.8009(FX35W81RTMGDR。 050727-8000)

dfshim.dll:6.3.9600.16384(winblue_rtm.130821-1623)



来源

部署网址:http:// localhost:59169 / mypath / WpfBrowserApplication1.xbap

应用程序网址:http:// localhost:mypath / WpfBrowserApplication1_1_0_0_78 / WpfBrowserApplication1.exe.manifest



IDENTITIES

部署标识:WpfBrowserApplication1.xbap,Version = 1.0.0.78,Culture = neutral,PublicKeyToken = 21728584691eaf20,processorArchitecture = msi l

应用程序标识:WpfBrowserApplication1.exe,Version = 1.0.0.78,Culture = neutral,PublicKeyToken = 21728584691eaf20,processorArchitecture = msil,type = win32



申请概要

*仅限在线申请。

*设置信任网址参数。 *浏览器托管的应用程序。



错误摘要

以下是错误摘要,这些错误的详细信息将在后面的日志中列出。

*确定信任时发生异常。检测到以下失败消息:

+用户拒绝向应用程序授予所需权限。

*下载应用程序时发生异常。检测到以下失败消息:

+ AssertApplicationRequirements方法失败。申请无法提交。



组件商店交易失败概要

未检测到交易错误。



警告

此操作期间没有警告。



操作进度状态

没有相位信息。



错误详情

在此操作过程中检测到以下错误。

* [8/24/2015 9:46:25 PM] System.Deployment.Application.TrustNotGrantedException(未知子类型)

- 用户拒绝向应用程序授予所需权限。

- 来源:System.Deployment

- 堆栈跟踪:

在System.Deployment.Application.ApplicationTrust.RequestTrust(SubscriptionState subState,Boolean isShellVisible,Boolean isUpdate,ActivationContext actCtx ,TrustManagerContext tmc)

在System.Deployment.Application.DeploymentManager.DetermineTrustCore(布尔阻塞, TrustParams tp)

在System.Deployment.Application.DeploymentManager.DetermineTrust(TrustParams trustParams)

在System.Deployment.Application.InPlaceHostingManager.AssertApplicationRequirements(Boolean grantApplicationTrust)

at System.Deployment.Application.InPlaceHostingManager.AssertApplicationRequirements()

at MS.Internal.AppModel.XappLauncherApp.AssertApplicationRequirementsAsync(Object unused)

* [8 / 24/2015 9:46:25 PM] System.Deployment.Application.DeploymentException(未知子类型)

- AssertApplicationRequirements方法失败。应用程序无法提交。

- 来源:System.Deployment

- 堆栈跟踪:

在System.Deployment.Application.DeploymentManager.WaitForAssertApplicationRequirements ()

在System.Deployment.Application.DeploymentManager.SynchronizeCore(布尔阻塞)

在System.Deployment.Application.DeploymentManager.SynchronizeAsyncWorker()



组件商店交易详情

没有可用的交易信息。

while i am running xbap direcly in IE, its running perfectly,
and when i am opining in iframe its giving trust not provide error,
error description given below


PLATFORM VERSION INFO
Windows : 6.3.9600.0 (Win32NT)
Common Language Runtime : 2.0.50727.8009
System.Deployment.dll : 2.0.50727.8012 (FX35W81RTMGDR.050727-8000)
mscorwks.dll : 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
dfshim.dll : 6.3.9600.16384 (winblue_rtm.130821-1623)

SOURCES
Deployment url : http://localhost:59169/mypath/WpfBrowserApplication1.xbap
Application url : http://localhost:mypath/WpfBrowserApplication1_1_0_0_78/WpfBrowserApplication1.exe.manifest

IDENTITIES
Deployment Identity : WpfBrowserApplication1.xbap, Version=1.0.0.78, Culture=neutral, PublicKeyToken=21728584691eaf20, processorArchitecture=msil
Application Identity : WpfBrowserApplication1.exe, Version=1.0.0.78, Culture=neutral, PublicKeyToken=21728584691eaf20, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
* Online only application.
* Trust url parameter is set. * Browser-hosted application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* An exception occurred while determining trust. Following failure messages were detected:
+ User has refused to grant required permissions to the application.
* An exception occurred while downloading the application. Following failure messages were detected:
+ The AssertApplicationRequirements method failed. The application cannot be committed.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
No phase information is available.

ERROR DETAILS
Following errors were detected during this operation.
* [8/24/2015 9:46:25 PM] System.Deployment.Application.TrustNotGrantedException (Unknown subtype)
- User has refused to grant required permissions to the application.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ApplicationTrust.RequestTrust(SubscriptionState subState, Boolean isShellVisible, Boolean isUpdate, ActivationContext actCtx, TrustManagerContext tmc)
at System.Deployment.Application.DeploymentManager.DetermineTrustCore(Boolean blocking, TrustParams tp)
at System.Deployment.Application.DeploymentManager.DetermineTrust(TrustParams trustParams)
at System.Deployment.Application.InPlaceHostingManager.AssertApplicationRequirements(Boolean grantApplicationTrust)
at System.Deployment.Application.InPlaceHostingManager.AssertApplicationRequirements()
at MS.Internal.AppModel.XappLauncherApp.AssertApplicationRequirementsAsync(Object unused)
* [8/24/2015 9:46:25 PM] System.Deployment.Application.DeploymentException (Unknown subtype)
- The AssertApplicationRequirements method failed. The application cannot be committed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.DeploymentManager.WaitForAssertApplicationRequirements()
at System.Deployment.Application.DeploymentManager.SynchronizeCore(Boolean blocking)
at System.Deployment.Application.DeploymentManager.SynchronizeAsyncWorker()

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

已解决!



升级框架和



*转到项目属性页面,选择签名选项卡



*确保选中签署ClickOnce清单 - >单击更多详细信息...按钮



*单击安装证书(如果您看不到此按钮,只需从解决方案资源管理器中删除旧的pfx文件然后单击创建测试证书 - >按下Next以通过向导 - 介绍 - >检查'将所有证书放在以下商店中' - radiobutton - >点击浏览...



*选择受信任的根证书颁发机构并按确定



*按接下来然后单击完成以完成向导并再次执行,但将其安装到Trushed Publishers而不是



开发时不再提供安全提示!
Solved!

upgrade framework and

* Go to your project properties page, select the 'Signing' tab

* Make sure "Sign the ClickOnce manifests" is checked -> Click the 'More details...' button

* Click 'Install Certificate' (if you cant see this button, just delete your old pfx-file from solution explorer and then click Create Test Certificate) -> press Next to get past the Wizard-intro -> Check the 'Place all certificates in the following store'-radiobutton -> Click 'Browse...'

* Select Trusted Root Certification Authorities and press OK

* Press Next and then Finish to complete the wizard and do it again but install it to Trushed Publishers instead

No more security prompts while developing!