WPF FAQ - Trusted Security

How do I get a custom defined permission set of an XBAP application ?

By selecting Custom as the ’Zone’ in the Security tab of the project properties. Permission can be included by clicking on the included column of the corresponding permission.

Permalink
I am able to access the registry using full trust XBAP application in debug mode, when hosted in an intranet, the application crashes. What do I do?

The application crashes due to insufficient access to registry even if you have a local intranet certificate. The issue is, you get access to the registry using the CLR in debug mode, whereas when hosted in local intranet, NT security restricts you from accessing the registry, giving full access to registry in the NT security to the administrators and power users group.

Permalink
How do I assign full trust to an XBAP application ?

Full trust permission can be assigned using ‘Security’ tab of the project properties. By selecting ‘This is a full trust application’ option in the security tab full trust can be assigned to the XBAP application. But be aware that it might cause security issues to your customer’s machine.

Permalink