运行应用程序时XBAP信任错误 [英] XBAP trust errors when running application

查看:156
本文介绍了运行应用程序时XBAP信任错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮助!我是Web开发的新手,有问题.我创建了我的第一个Visual Studio 2010 Express WPF应用程序.然后,我将其发布到服务器上的IIS服务器根目录.我可以连接到由发布功能创建的html文件,但是当我点击运行时,我会得到信任未授予"错误.该应用程序正在尝试访问服务器上的文件.错误消息摘要如下:

错误详细信息

Help! I am new to web development and have a problem. I created my first Visual Studio 2010 Express WPF application. I then published it to the IIS server root on my server. I can connect to the html file created by the publishing function but when I hit run I get Trust not granted errors. The application is trying to access files on the server. The error message summary is as follows:

ERROR DETAILS

Following errors were detected during this operation.
* [5/24/2012 11:12:38 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)
* [5/24/2012 11:12:45 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()



我需要将其部署到公司内部的多个内部Web服务器上.谁能告诉我如何给予XBAP使其运作所需的信任?我研究了一些脚本,发现该脚本可以解决该问题,但该脚本无法正常工作,或者我使用了错误的脚本.请提供您可以提供的任何建议.谢谢.



I need to deploy this to several internal web servers within my company. Can anyone tell me how to give the XBAP the trust required to make it work? I researched some and found a script that is supposted to take care of the issue but it does not work or I am using it wrong. Please provide any advice you can. Thanks you.

推荐答案

您需要阅读^ ]页面.您在这里没有提到的一件事-您是否将其发送到服务器,还是只是尝试在没有网络服务器的情况下直接在计算机上从.html文件运行此文件?如果您尝试直接方法,这就是您的问题-它需要从Web服务器托管.
You need to read all the information in this[^] page. One thing you haven''t mentioned here - did you deply this to a server, or were you just attempting to run this from the .html file directly on your machine with no webserver inolvement? If you were attempting the direct method, this is your problem - it needs to be hosted from a web server.


这篇关于运行应用程序时XBAP信任错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆