WPF Clickonce in Firefox and Chrome - wpf

We have a WPF Clickonce application, whcih is deployed in Server. It is working perfectly in IE. The application started installing on single click. But in Firefox and Chrome, the file was downloaded. How to overcome this? I know there are some plug-ins which will allow this as IE.
But my question is, Can I add these plugins into my application pre-requisites? Or what is the good approach to do that. Is there anyway that I could install the plugins by detecting the browsers before starting the clickonce app? I don't want my end users to do that.

Even if you find a way to embed plugins into ClickOnce-bootstrapper ("pre-requisite") you'll have to tell user to run it explicitly. ClickOnce doesn't support installing of dependencies transparently. You'll have an .exe file which user need to run. Usually VS wizard generates an html page (publish.html) which has client code for detecting missing pre-requisites. But actually it detects only missing .NET.
So you have to write some js-code for detecting missing/installed extensions for each browser you want to support.
Check this SO question: Checking if user has a certain extension installed
In anyway if a user has a link to .application and opens it in the browser then all pre-requisites will be ignored. As actually ClickOnce itself doesn't have such a feature as "pre-requisites" or "dependencies". It's just a helper for generating totally separated setup.exe bootstrapper.
Here links for extensions:
Firefox addin for ClickOnce applications - https://addons.mozilla.org/en-US/firefox/addon/microsoft-net-framework-assist/
Google Chrome addin for ClickOnce applications - https://chrome.google.com/webstore/detail/eeifaoomkminpbeebjdmdojbhmagnncl

Related

Problems with making Silverlight project out of browser

I have a task to make large Silverlight project run out of browser.
Fortunatelly I don't have to rewrite it to some other technology. Unfortunatelly I can not understand how to make it work OOB. I tried everything that's in guides :
enabling OOB option, installing and tryiung to debug installed app, but main thing is that when I run this app OOB I can't reach any services (no matter how I try HTML Bridge is disabled in OOB).
Is there a way to reach those services (like https://localhost/WCFRest/GetUserInfo?login=somelogin&password=somepassword) from OOB enviroment?
What should I do to reach them?
I'm sorry if this is noob quetion but I can't ask anyone else.
I assume you have a Web project in your solution. I think you changed the startup project to the silverlight project. You need to start up the Web project too.
Do the following:
Right click on the solution in the Solution Explorer and select Properties.
Select "Multiple startup projects" and set the action to "Start" (on the web project)
Or just simply right click on a HTML or ASPX file in the web project and select "View in Browser".

Browser automation in .Net

Can I automate actions like filling and submitting a form, clicking links et.c. in a real browser (i.e. IE11 or Firefox) using only a Silverlight or an XBAP application?
I would be grateful if you could let me know any other solution (other than the two above) that can do the automations without the need to manually install third party software (like Selenium or Telerik Testing Framework).
No one answered, so I'll tell you what worked and what not.
Silverlight solutions didn't work due to the Same-origin browser policy.
The XBAP solution actually worked. I created a new XBAP application and loaded it in my other application inside an iframe.
The user must accept the pop-up and the XBAP application opens a new WebBrowser control doing its stuff.
The whole thing only supports IE.

GetTempFileName not working in silverlight out-of-browser

I have a Silverlight application that runs out-of-browser. I was previously able to get the statement Path.GetTempFileName to work when I run out-of-browser but not when running locally. Now this is failing out-of-browser also.
I am getting this error
Message
File operation not permitted. Access to path '' is denied.
I am editing this because I have new information. I have another application which is very similar where I am not getting the problem. That is Path.GetTempFileName works fine. I cannot see any differences between the applications.
I need some hints as to what could be different between the two application. I am running both locally in debug.
Have you checked the Out of Browser settings in the Silverlight Project Properties page? There is a checkbox "Require elevated trust when running out of browser.
On the ShortCut not working. Try uninstalling the app from the Control panel and reinstalling. Then try it again.

How to get out of browser to work on a silverlight application?

I have a silverlight application and i have already checked the box that enables OOB. When i run the program from the IDE and i right click on the browser, i do not get an option to install the application. Instead i have an option to remove the application.
I would like to get an icon that other users can just click on in order to run the application. Is there a reason why i do not have the option to install the application when i run my program?
If it matters i am using silverlight 5.
thanks!
You have the option to remove the application means you have installed out of browser in the past, after clicking "remove the application" you will have the option to install the application locally.

How do i enable the firefox xbap plugin

Firefox recently blacklisted the plugin that allows xbaps to work in firefox
This is a huge problem for me as one of my companies enterprise products is a web application that makes use of an xbap and must work in firefox.
Does anyone know if there is an update to the blacklisted plugin or if it is possible to overwrite the blacklist and use the plugin anyway?
The Windows Presentation Foundation plugin is no longer blocklisted. Are you sure it's still blocked?
What you need is to place the NPWPF.dll in the Firefox Plugin folder.
That works perfectly.
You can find the NPWPF.dll file in :
[WINDIR]\Microsoft.NET\Framework\v3.5\Windows Presentation Foundation

Resources