How can I run XBAP in my browser and not load it in Windows 7?

On my old XP computer, starting XBAP from Visual Studio will open it in Google Chrome. I switched to Windows 7 and now XBAP downloads this file as a ZIP or EXE, instead of opening it in a browser. The same thing happens in FireFox.

Does anyone know why I suddenly upload a file and not open it? And how can I fix this?

And yes, I know that XBAPs are not designed to work in Chrome, but if you copy a bunch of FireFox libraries into the Google \ Chrome \ Application directory, that will be just fine (steps here if anyone wants to).

Even before I had this setting, it would still try to open xbap in chrome, and I could copy the URL in IE for testing. Now it downloads the file, so I can’t even do this.

+6
source share
2 answers

Got it ... Firefox (and Chrome, since I use FF DLLs to run XBAP on Chrome) launches XBAP using the dll from the .Net 3.5 installer, and since Windows 7 comes with 3.5 installed, this dll is not available

To fix this, I needed to copy the file

C: \ WINDOWS \ Microsoft.NET \ Framework \ v3.5 \ Windows Presentation Foundation \ NPWPF.dll

from an XP computer to

C: \ Program Files (x86) \ Mozilla Firefox \ plugins

(if the FireFox folder does not exist, create it)

Also, if you want to do the same, I think this was the link I used to find out which FF files I need to copy to the Chrome installation directory:

The following libraries are found in the Mozilla Firefox C:\Program Files\Mozilla Firefox installation directory C:\Program Files\Mozilla Firefox must be copied to the Chrome installation directory:

  • js3250.dll
  • mozcrt19.dll
  • nspr4.dll
  • nss3.dll
  • nssutil3.dll
  • plc4.dll
  • plds4.dll
  • smime3.dll
  • sqlite3.dll
  • ssl3.dll
  • xpcom.dll
  • xul.dll

Assumming Chrome is installed in the following directory: USER matches your Windows user. C:\Users\[USER]\AppData\Local\Google\Chrome\Application

+3
source
 MIME Type Extension application/manifest .manifest application/x-ms-xbap .xbap application/octet-stream .deploy application/x-ms-application .application application/vnd.ms-xpsdocument .xps application/xaml+xml .xaml 

Maybe this is due to file extensions?

-1
source

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


All Articles