WPF(XBAP)应用程序在某些计算机上不受信任,但另一个得到提示并可以运行该应用程序

Dre*_*aye 2 permissions wpf xbap

我有一个WPF文件无法正常运行的问题.在某些计算机上,它会启动安全提示,然后单击"确定"以使应用程序正常运行.但是在其他机器上(有些设备完全相同,因为机器都在我们网络的这一侧都是相同的),没有安全弹出,只是"信任不被授予"我已经在下面放置了一个日志.我尝试了包括但不限制的东西,将其直接删除到iis,将文件放置到文件位置并移动它(所有使用clickOnce)我已经检查了Fullpermissions,我尝试过签名和unigend,使用passworded和unpassworded pfx.

我没有能力修改受信任站点的IE设置等(但我不认为这是问题,因为工作的机器和那些不应该具有相同设置的机器)

我会很乐意帮助你.谢谢.

PLATFORM VERSION INFO
    Windows             : 5.1.2600.196608 (Win32NT)
    Common Language Runtime     : 4.0.30319.239
    System.Deployment.dll       : 4.0.30319.1 (RTMRel.030319-0100)
    clr.dll             : 4.0.30319.239 (RTMGDR.030319-2300)
    dfdll.dll           : 4.0.30319.1 (RTMRel.030319-0100)
    dfshim.dll          : 4.0.31106.0 (Main.031106-0000)

SOURCES
    Deployment url          : http://***.***.***.***/AutoData/AntiRoom/TestManagement.xbap
    Application url         : http://***.***.***.***/AutoData/AntiRoom/Application%20Files/TestManagement_1_0_0_25/TestManagement.exe.manifest

IDENTITIES
    Deployment Identity     : TestManagement.xbap, Version=1.0.0.25, Culture=en, PublicKeyToken=cbf2bb8ca25cd6ff, processorArchitecture=msil
    Application Identity        : TestManagement.exe, Version=1.0.0.25, Culture=en, PublicKeyToken=cbf2bb8ca25cd6ff, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
    * Online only application.
    * 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.
    * [01/03/2012 10:30:58 AM] 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)
    * [01/03/2012 10:30:58 AM] 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.
Run Code Online (Sandbox Code Playgroud)

Rac*_*hel 7

这是我用来使我们内部网络上的所有XBAP作为完全信任运行的脚本.通常我将它放在批处理文件中,如果他们通过电子邮件向我发送有关完全信任错误的信息,则会将用户链接发送给.bat

%systemroot%\Microsoft.NET\Framework\v2.0.50727\CasPol -q -machine -addgroup All_Code -url http://InternalWebServer/* FullTrust -n XBAPSecurity -polchgprompt off
Run Code Online (Sandbox Code Playgroud)

只需用InternalWebServer内部Web服务器根目录替换它所说的位置即可