如何让我的XBAP在我的浏览器中运行而不是在Windows 7上下载? [英] How can I get my XBAP to run in my browser instead of downloading it on Windows 7?
问题描述
有谁知道为什么我突然下载文件,而不是打开它?而我该如何解决这个问题?
是的,我知道XBAP并不意味着在Chrome上运行,但是如果您将一堆FireFox dll复制到Google \它运行的Chrome \应用程序目录很好(步骤此处如果有人愿意)。
甚至在设置之前,仍然会尝试在chrome中打开一个xbap,然后我可以将该URL复制到IE中进行测试。现在它下载文件,所以我甚至不能这样做。
明白了... Firefox(和Chrome,since我使用FF dll在Chrome中运行XBAPs)通过使用.Net 3.5安装程序中的dll来运行XBAP,而且由于Windows 7已经安装了3.5,所以这个dll是不可用的。
为了解决这个问题,我需要复制文件
C:\WINDOWS\Microsoft.NET\从XP机器到$ / b
$ blockquote
C:\ Program Files(x86)\ Mozilla Firefox \plugins
(如果FireFox文件夹不存在,创建它)
另外如果你想要做同样的事情,我认为这个是我用来弄清FF文件的链接我需要复制到Chrome的安装目录:
lockquote
在Mozilla Firefox的安装目录
C:\ Program Files \Mozilla Firefox
必须复制到Chrome
安装目录:
假设Chrome安装在以下目录中,USER
对应于您的Windows用户。
C:\ Users \ [USER] \AppData\Local\Google\Chrome\Application
On my old XP computer, running an XBAP from Visual Studio would open it up in Google Chrome. I switched to Windows 7, and now running an XBAP downloads the file like it were a ZIP or an EXE instead of opening it in the browser. The same thing happens in FireFox.
Does anyone know why I am suddenly downloading the file instead of opening it? And how I can fix it?
And yes, I know XBAPs are not meant to run on Chrome, but if you copy a bunch of FireFox dlls to the Google\Chrome\Application directory it runs just fine (steps here if anyone wants).
Even before I had that setup, it would still try and open an xbap in chrome and I could copy the URL to IE for testing. Now it downloads the file so I can't even do that.
Got it... Firefox (and Chrome, since I'm using FF dlls to run XBAPs in Chrome) runs XBAPs by using a dll from the .Net 3.5 Installer, and since Windows 7 comes with 3.5 already installed, this dll isn't 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 machine to
C:\Program Files (x86)\Mozilla Firefox\plugins
(if FireFox folder doesn't exist, create it)
Also in case you're looking to do the same, I think this was the link I used to figure out what FF files I needed to copy to Chrome's installation directory:
The following libraries found in Mozilla Firefox instalation directory
C:\Program Files\Mozilla Firefox
have to be coppied to 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 corresponds to your windows user.
C:\Users\[USER]\AppData\Local\Google\Chrome\Application
这篇关于如何让我的XBAP在我的浏览器中运行而不是在Windows 7上下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!