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

WPF(XBAP)应用程序在某些计算机上不受信任,但其他计算机会得到提示并可以运行该应用程序,wpf,permissions,xbap,Wpf,Permissions,Xbap,我遇到一个WPF文件运行不正常的问题。 在某些机器上,它启动时会显示一个安全提示,单击“确定”可以让应用程序正常运行。 但在其他机器上(有些机器的设置相同,因为机器都是在我们网络的这一边成像的),没有安全性弹出窗口,只是“未授予信任”我在下面放了一个日志。我尝试过一些方法,包括但不限于,将其直接发布到iis、文件位置并将其移到另一个位置,(全部使用clickOnce)我已检查了完全权限,我尝试过使用密码和未密码的pfx进行签名和取消签名 我没有能力修改受信任站点等的IE设置(但我认为这不是问题,

我遇到一个WPF文件运行不正常的问题。 在某些机器上,它启动时会显示一个安全提示,单击“确定”可以让应用程序正常运行。 但在其他机器上(有些机器的设置相同,因为机器都是在我们网络的这一边成像的),没有安全性弹出窗口,只是“未授予信任”我在下面放了一个日志。我尝试过一些方法,包括但不限于,将其直接发布到iis、文件位置并将其移到另一个位置,(全部使用clickOnce)我已检查了完全权限,我尝试过使用密码和未密码的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.

下面是我用来让我们内部网络上的所有XBAP作为完全信任运行的脚本。通常我会将其放在一个批处理文件中,并向用户发送指向.bat的链接,如果他们向我发送有关完全信任错误的电子邮件

%systemroot%\Microsoft.NET\Framework\v2.0.50727\CasPol -q -machine -addgroup All_Code -url http://InternalWebServer/* FullTrust -n XBAPSecurity -polchgprompt off

只需将显示为
InternalWebServer
的地方替换为您的内部web服务器根目录

值得注意的是,在启用UAC的情况下,这必须作为管理员(提升)运行。