How to run Full Trust XBAP on an intranet?

I created a WPF browser application that hosted the old WinForms controls (I have not yet fully migrated to WPF). Using WindowsFormsHost means that my Browser application requires Full Trust to run. This is not a problem for me, because this application is designed to work on the intranet in my company. However, after deploying xbap to a network share, it refuses to start, saying "Trust not given".

What are the methods I can use to provide full trust to XBAP applications hosted on my company intranet?

+2
source share
3 answers

So far I have found 2 ways to do this. Using a really sophisticated method of installing certificates on a target machine .

Or using a simpler method that is only suitable for intranets here :

Deploy a custom CLR security policy that changes the default permissionset for this zone

So, I did just that, and it works. Here are detailed instructions on how I earned:

  • Open Control Panel> Administrative Tools> .NET Framework 2.0 Configuration
  • Expand Runtime Security Policy> Machine> Code Groups> All_Code
  • Right-click All_Code and select New ...
  • Create a new code group that I called MyProject_FullTrust_Zone
  • URL , .
  • " " " ".

, . , ?

+6

.NET 4.0, 2010 . -, go live license, "" - .Net framework.

+1

, XBAP ?

0

Source: https://habr.com/ru/post/1723662/


All Articles