debug an xbap on firefox? - wpf

I am starting to write an xbap (wpf web app).
I create a new project and run it and Firefox fails (it just keeps trying to open it with "Windows Presentation Foundation Host).
I know that Firefox and Microsoft don't really see eye to eye, but surely there is a way to do this now days?
Saw this post that shows a hack of copying out a DLL from a Windows XP machine. But my users will not do that (I don't even want to do that!)
Does this mean I have to abandon Firefox as my default browser until I am done developing my xbap?
NOTE: I am using Windows 7 and Visual Studio 2010 Ultimate and Firefox 3.6.12

I don't know what exactly your problem is, but here is a Scott Hanselman blog post detailing a WPF application deployed as an XBAP (not XBAB) using VS 2008 with .NET 3.5. It doesn't say anything about WPF 4 (and the .NET 4 runtime, the post is from 2008) or what version of Firefox he was playing with but I hope this demonstrates it is possible and gives you a starting point for more detailed investigations.
Edit - Well, I should have dug a little deeper. It appears that Windows 7 won't support XBAPs in FireFox. There is a Firefox Add-on to Support XBAPs and Loose XAML that is installed with the .NET 3.5 runtime but it is not included in Windows 7 and this link suggests it can't be installed on Windows 7.
You could run IE Tab Plus (Firefox plug-in) and get it to default to IE when you open something from the localhost.

Related

Issue involving Silverlight on Windows 10

After installing Windows 10 and then going to my website, that uses Silverlight, I find that Microsoft Edge does not support Silverlight. Has Microsoft killed Silverlight? Is there any way to run Silverlight in some add-in that will run in Edge? I have a lot of code invested in Silverlight. Is my only option to rewrite all of my apps? In What? HTML 5 and javascript?
I can't seem to install IE 11 on windows 10.
Has Microsoft killed Silverlight?
They have killed it for Edge. While you can keep using it in IE 11 and other out-of-browser apps, Microsoft is really discouraging it.
Is there any way to run Silverlight in some add-in that will run in Edge? ... I can't seem to install IE 11 on windows 10.
Within Edge, click the ... in the top right corner. Choose Open with Internet Explorer.
Is my only option to rewrite all of my apps? In What? HTML 5 and javascript?
In the short term, you could encourage users to click on Open with Internet Explorer. In the long term it's HTML5 and JavaScript including DASH, MSE, CENC, and EME.
DASH. Dynamic Adaptive Streaming over HTTP.
MSE. Media Source Extensions.
CENC. Common Encryption.
EME. Encrypted Media Extensions.
References
http://blogs.windows.com/msedgedev/2015/07/02/moving-to-html5-premium-media/
https://developer.mozilla.org/en-US/docs/Web/HTML/DASH_Adaptive_Streaming_for_HTML_5_Video
http://www.w3.org/TR/media-source/
http://docs.unified-streaming.com/documentation/drm/common-encryption.html
http://www.html5rocks.com/en/tutorials/eme/basics/

Silverlight not loading

I tried installing silverlight 5 developer runtime but sadly things ended up being a big mess leaving my vs2010 having "catastrophic error" everytime i'm in design view.
I removed everything silverlight related (or think i did. There are no other silverlight toolkits or runtimes installed on the uninstall list).
Now I browsed to a silverligt app and the "get silverlight" link appears and I downloaded and installed the runtime but the silverlight won't load now (no loading icon and the page is just blank). I checked the app on a different pc and it loads fine.
I've tried both 32 and 64 bit runtime (silverlight 5 is the latest afaik) and tried both versions of IE and chrome. I'm on a 64bit win 7 ultimate and vs2010 ultimate. What am i missing?
Fixed. What I did was:
uninstall every silverlight related programs installed (blend, silverlight toolkits, developer and user runtime)
ran CCleaner to get rid of unnecessary entries in the registry.
repaired/reinstalled Visual Studio (don't need to uninstall this).
then re-install the necessary silverlight sdks and runtimes.

Silverlight 5 plugin with Safari 5.1

I have a Silverlight 3 application that contains 1 code line (it's a part of real project):
var doc = HtmlPage.Document;
In Safari 5.1 (Windows 7 SP1, Silverlight plugin 5.0.61118.0) I get the Exception in this line:
Unable to cast object of type System.Windows.Browser.HtmlElement to type System.Windows.Browser.HtmlDocument
So, I don't have any access to browser DOM model.
In other browsers everything is ok.
Can somebody help me with this if it's possible ?
I have the same problem, it seems to only occur on Safari for Windows with the Silverlight plugin 5.0.61118.0. The problem seems to have been introduce with Silverlight 5.0.
Also, you cannot access: HtmlPage.Window
According to Microsoft officially Safari for Windows is not a support platform, see:
http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx (click System Requirements)
In my testing I found that the issue does NOT occur in Silverlight 4 but DOES occur in Silverlight 5.
This is slightly confused because if you try to install Silverlight 4 on Safari for Windows from this link:
http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0
Then you end up with a Silverlight 5 installation.
I found that you use IE to visit this link then Save the download EXE, then install the EXE on Safari for Windows you will get a Silverlight 4 install and from my testing this works. Thus, I am advising my customers who face this issue to install Silverlight 4 as described.
Try this and see if this works (my application uses the navigation framework):
As the error has something to do with the NavigationJournal and in SL we have some control over it I just changed the Journal ownership to:
sdk:Frame JournalOwnership="OwnsJournal"
On the MainPage.xml where the navigation takes place in my app. In this way we lose the browsers back button/navigation but we can implement our own inside the SL app.

Does not recognize Silverlight 4.0 Install

I am running Win 7 64-bit. I a running IE 9 beta (9.0.7930.16406 )I upgraded to Silverlight 4.0 and for some reason now it does not recognize that I have it installed when I go to Silverlight required web sites.
In my control panel – it clearly states that I have 4.0 installed. I uninstalled and reinstalled this as well. However when I go to sites that require silverlight it does not recognize that have Silverlight installed. And of course when I try to click on install Silverlight I get the following error: "The same version of silverlight is installed"
Interesting information – I was able to create another account on my computer and get things working. So this is something tied to my login ID. And yes I am admin on this box.
Any ideas?
Are you launching the 32-bit or the 64-bit Internet Explorer process? Silverlight only works in 32-bit browsers.

Silverlight problem on windows server 2003

I have installed silverlight 2 on windows server 2003. but when I browse silverlight sites, nothing is shown. Please help me?
On windows 2003 the first thing I look at when there is a problem like that is to look at the browser permissions relating to the site. It could be that your IE settings won't allow it to use the silverlight control.
Make sure that you've installed the Silverlight plugin in your browser. It doesn't have anything to do with Windows Server 2003 OS, as it is a cross-platform, cross-browser .NET plugin.
If you are using the IE7 browser and having problems then you may want to check out this thread on the Silverlight forums "Silverlight will not work with IE 7"
It turns out that a firewall software causes this problem.

Resources