Launch a WPF application in a browser

I wrote my application in WPF. Now I want it to run in the browser, so I read about it, and I know that XBAP is my solution.

What is my problem? It will not work on my PC. I checked every popular browser (chrome, FF, IE, opera) and nothing. Browsers cannot process .xbap files and just download it. I try to try and nothing but the above. Can anyone guess why this is not working? This is an outdated technology, I have too new browsers or what? Each entry I found about it is 2-4 years old.

+4
source share
2 answers

First, for Internet Explorer (IE9 onwards), you need to make sure that you enable XBAP / XAML support:

enter image description here

For Firefox and Chrome, you need to do something a little different:

But in addition to the above, you need to know that when you start the XBAP application, it starts in the Internet zone .... so your biggest problem is that usually you do not have full trust ... therefore your application cannot call privileged code ... if it tries, then you will get security exceptions.

One way to get your XBAP to be β€œtrusted” is to obtain it with a certificate (you must purchase it from Verisign and not use a test certificate) and deployed using ClickOnce.

Or you can save your application as a regular WPF.EXE and use ClickOnce to deploy it from a website, but run it locally with full trust.

+5
source

not a direct way, you can find the answer Microsoft MSDN Forum

+1
source

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


All Articles