views:

123

answers:

4

We are planning to build a new integration component that can provide us access to user's machine installed apps from our web site.

The first word that came to me was ActiveX, but our expertise with the technology was not the best in the past.

Thinkink a lit bit more, the work Silverlight also came to my head, but the full trust thing was one of the few things I remembered reading about the technology..

The question is: is there a way that Silverlight (2, 3, 4, whatever) can run as a full trusted application from within the browser?

Links are appreciated.

Filipe

+3  A: 

Unfortunately, no. Full trust is a feature of Silverlight 4, currently in beta, and is restricted to out-of-browser applications.

Additionally, full trust SL4 applications do not have unrestricted access to the system (particularly file system), though this may change before before release (if I have anything to do with it).

Edit: If you are considering ActiveX (which is Windows/IE only), you might want to have a look at WPF, since it can run full trust from the browser (if it's in a trusted zone).

Richard Szalay
Tks Richard, event not estimulating to us the answer at least helps to discard SL. I'll take a look at WPF, I didn't know that it could run inside the browser.
jfneis
+1  A: 

No, like Richard said, this is not at all possible inside the browser, even in SL4. There is a sandbox, and you live in it. You can talk to web services, other Silverlight applications or the browser.

By talking to the browser, I mean you can talk to the DOM and the Javascript engine. We needed to launch a Windows application and communicate to it via Silverlight. We accomplished this by putting a small ActiveX control in the web page. It is responsible for launching the WinForms application and handling inter-process communication to it.

This method has many drawbacks: It can only work in IE, and it only works in Windows. You might also run into permissions issues. The ActiveX component needs to be installed along with the desktop application, or as an additional download. The deployment story there is pretty awful, if you ask me.

In our case, the analysts were willing to deal with the restrictions for the re-usability of an existing application, and we consider it to be an optional feature.

Brian Genisio
Tks Brian, I've already ran into some activex deployment issues too, really weird stuff.
jfneis
A: 

Well - if you're hosting the silverlight control from an ASP.NET application - Believe you have access to

Request.ServerVariables["AUTH_USER"];

...and you can pass that on to your control as a parameter.

D

A: 

Does it have to be a web application? sounds like you want a desktop app. It can be easiliy distributed with one Click deployment. Will work on windows only but since you were considering ActiveX sounds like that's what you need.

Vitalik
VItalik, actually the whole app is web, I just need a component that'll talk with client apps (through socket or somethink like). Unfortunately the desktop app (w/ or w/out click once) isn't an option. Tnks.
jfneis
Can you clarify what kind of apps will it be talking to (are they written by you?) and what kind of access. Originally it sounded it like you need access to the operating system, now it sounds like those will have some kind of sockets opened up.
Vitalik