Does Silverlight support Outlook Addin(Javascript API)? - silverlight

We are trying to integrate Silverlight components in Outlook task panel which is developed by Outlook Javascript API. However when mailapp(task panel) loaded, it appears error and it prompts the Silverlight addin failed to run and please check security settings in “Internet Options”. I also tried adding website URL into IE trusted sites list, but this error remains. But I also notice that it works fine in IE browsers.
I know the mailapp (task panel) initials a web browser (IE kernel) in embedded mode. But I really want to confirm whether Silverlight is supported or NOT in MailApp? If it's supported, how should I do?
Anyone gives me the right answer will save my life. Thanks in advance.
It prompts security settings conflicted in MailApp
But it works fine in a separate IE browser

Related

Security prompt about Microsoft Silverlight in IE11

I am working on a Sharepoint 2010 site. I am testing my site behaviour on IE 11.
When I log on to my site I am getting a security prompt about allowing 'npctrl.dll' which is 'Microsoft Silverlight' add-on file. This message appears on every page. This is causing bad user experience.
When I allowed npctrl.dll on one of the pages, It showed me next security prompt with following message: This webpage Wants to run 'Microsoft Silverlight' which isn't compatible with Internet Explorer's enhanced security features.
I read somewhere that this prompt is coming due to enabled enhanced protected mode in IE11 browser.
Please let me know if it can be solved by any work-arounds.
Thanks in advance. Any help will be appreciated.
Silverlight is a legacy plugin which is no longer actively developed. As a consequence, it does not support running inside Enhanced Protected Mode's AppContainers. EPM is a security feature first introduced in IE10 and enabled by default in the desktop for IE11.
Microsoft has indicated that they're "looking at" possibly updating Silverlight to work in EPM but given that the team was effectively dissolved years ago, I wouldn't hold my breath.
The simplest workaround for this issue is to place the sites in question in Internet Explorer's Trusted Zone, which runs outside of EPM.
The long-term workaround for this issue is to migrate away from Silverlight in the browser; either replace the site with an app that runs outside the browser, or move to HTML5.

Coded UI Test builder fails to recognize controls when XAP is hosted at different domain

The Coded UI Test Builder fails to recognize Silverlight controls when the application (XAP) source is a different domain
I placed XAP at two different locations
http:\Domain1\MyApp\MyApp.XAP
http:\Domain2\MyApp\MyApp.XAP
My WebPage is at http:\Domain1\HomePage.html
If the Silverlight object's source is set to 1st one (same domain) it works fine and CUIT builder recognizes, records and playbacks properly. But, when I set the source to 2nd one (i.e. different domain), the CUIT builder fails to recognize Silverlight app.
The application itself work fine when hosted at Domain1 or Domain2. The recording is also successful when web page at DomainX refers to app at same DomainX. It fails to record when web page at DomainX refers to the same app at DomainY. What do I need to make it work?
Thanks
PS: Please note that the Silverlight application itself works fine no matter from which domain I am using - I have appropriate crossdomain policy file available and enableHtmlAccess set to true.
I have also verified presence of automation helper dll in XAP at both places (infact same XAP has been placed
I had logged this bug on MSDN connect - Coded UI Test builder fails to recognize Silverlight controls in cross domain XAP
This has been marked as "Won't Fix":
"We have investigated this scenario and determined that cross-domain XAPs cannot be supported by Coded UI Test. We use CreateFromXAML apis to enable the UI Testing component for Silverlight and
this API is failing for cross domain XAPs. Unfortunately, we have not been able to identify a workaround either. Closing the bug as Won't fix"

Start WPF application from link in browser?

We have a requirement to start a WPF application with specific parameters from a link in a browser.
We are wondering if this is possible?
As an alternative could we embed the web application in a WPF browser control, and read the values out of the html web page?
Several possibilities :
if you control the browser (i.e. if you are in an intranet scenario, and have the opportunity to deploy applications), you can :
create an activex or plugin that runs the application
register a new uri scheme to interpret the url of kind "yourapplication://yourarguments"
(complex): deploy a listening app ran under the user session, and from the webapplication, ask this listening app to run the target application
reduce the security of the browser (not recommended)
if you don't control the browser:
create a clickonce application... this involves a setup, but which does not require admin privilege
Moving to Silverlight also might be an option, depending on your needs. SilverLigth V5 (still in beta) notably adds the ability for an admin to control the rights of the application via a GPO
Note: My feelings is the later option (Silverlight) is far more preferable because it's a lot more cleaner and less security hole factor. However, it can only be done if your requirements fits into the SL features
It is not possible to call client app from a browser, previously it was possible from activex controls but for that you need to have a signed library, in wpf you can make browser based application but you cant embed your web app in it.
So partially you are correct if you used wpf app you will be able to launch application on client side but with browser it seems difficult until unless you make activex control
but still i am not 100% sure that with activex control you will be able to launch the app or not

Silverlight 4 launch a trusted application into the browser?

I just lost 5 hours looking for a answer which i haven't been able to find :p
First, I'd like to force a trusted application (i need to access the file system) to display into the browser. Based on what i found on google a trusted application must be installed and launched as a desktop application (also called out-of-browser application).
So, i want to have an installed application on the client side but meanwhile, the user must also be able to start this same application into a browser window when he goes on my web site. Is this possible ?
Second, I'd like to give to the user the possibility to start the application from the browser. To be clear, the application is installed on the client computer but i want a button on my web site which starts the desktop application. How can i do that ?
Thanks
The answers are sort of and no.
Yes you can run an application that has been installed on the client also in the browser. However, not all of the installed application features will be available. Anything that requires elevated trust will not work inside the browser.
No you can't launch the installed application programmatically from within code running in the browser. The best you can do is display a polite message to the user to the effect that they have this app already installed and in order to access all of its feature they will need to launch it.
Yes, it is possbile since Silverlight 5, see my answer on silverlight-4-elevated-permission-inside-the-browser

Other ways to disable Silverlight in IE 7?

I know I can disable the Silverlight add-on using the Manage Add-ons dialog, but what other settings would cause Silverlight to not function and display the Install link, if the correct version of Silverlight is actually installed on the computer?
Silverlight applications do not display (they show the Install link) in Internet Explorer 7 on a single client's computer under one administrative user's account. They display in FireFox and Chrome on the same computer. They work for other users in Internet Explorer on the same computer. The add-on is enabled. It shows the same symptoms as if you disable the Silverlight add-on. What else could cause this?
Is Javascript enabled in IE? Is the site hosting the application in the Restricted Sites zone?

Resources