Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista Tutorial - "Trust Not Granted" Error - Full Trust WPF Web App on a CorporateNetwork

 
 
Old 09-12-2008   #1 (permalink)
MattH
Guest


 
 

"Trust Not Granted" Error - Full Trust WPF Web App on a CorporateNetwork

I'm trying to create a WPF Web Application, that will ultimately run
on a corporate network - in otherwords the XBAP will be executed from
a network share.

When I execute the XBAP from the remote share I get the following
exceptions:

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.

The first thing I did was to create a public/private key pair:
makecert.exe -sv MyKey.pvk -n "CN=Mine" MyKey.cer

Then from this I created a PFX Certificate:
pvk2pfx.exe -pvk MyKey.pvk -spc MyKey.cer -pfx MyKey.pfx -po
MyPassword

I then created a new Windows Presentation Foundation Web Application
in Visual Studio 2008.
Next I set the properties for the application:

Signing:
Tick "Sign the ClickOnce manifests"
Select From File - I select the certificate file I've just made.
Tick "Sign the assembly"

Security:
Tick "Enable ClickOnce Security Settings"
Check "This is a full trust application"

Publish:
Publish Location - this is folder on the local hard drive that is
shared on the network.

I build and publish the applicaiton. It works fine on the local
machine.


Move to 'remote' machine on the corporate network.

Copy and install the certificate file I made earlier and store it in
the "Trusted Publishers" folder.

Browse to the development machines "publish" folder. Double click the
XBAP file. I'm presented with the "Trust Not Granted" - "The
application cannot be deployed because it is not trusted and possibly
unsafe." error. On clicking "Open Error Log" I get the exceptions
written above.

Any help would be appreciated as it's driving me nuts!

Thanks in advance

Matt

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
intermittent workstation trust error calling IsInRole(string) .NET General
Do not trust the "logged on from" at Vista login Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46