Click here to Skip to main content
16,019,593 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
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()


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.
Posted
Updated 24-May-12 9:36am
v2

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900