views:

118

answers:

1

I need an alternative to ActiveX Controls to run code on the client-side. I need a solution to download a file and execute it's binary code. But the only solution I found was an ActiveX Cab Control. Basically what this control is going to do is communicate with mainframes through sockets. Maybe I can do this with Silverlight, but I don't know if it's the best solution. I know I could use a server, but since I'm expecting a lot of users and at least 5 simultaneous connections per user I don't want to overload my server. I don't know if there is a newer .cab on .Net Framework but I searched a lot and I wasn't able to find it.

ActiveX is not unacceptable but I want to know if there a better solutions out there. I think that ActiveX is a very old solution to this kind of problem since I'm using .Net Framework 3.5. It just feels like using VB6 solution to this problem. And also is very tricky to manage ActiveX controls deployment.

A: 

The only component option available to you in Internet Explorer is an ActiveX component. Of course if you know that an existing ActiveX implemented host such as Silverlight or Flash is already, or quite likely to be, installed on the client then they may be an option.

Silverlight will allow you write code in a variety of .NET languages and communicate with a server over Sockets with the limitation that you can only access ports 4502-4534.

Other browsers such as Firefox provide other options for creating extensions that do not involve cabs.

AnthonyWJones
The whole system is already written in C# and has around 14 .net dll's. I need a way to download and manipulate this on the client-side. Is there a way to do this with or without IE besides ActiveX ?
Helton Valentini
@Helton: Have you considered, XBAP or Building an MSI to be deployed in Group Policy or .NET one click deployment or just a plain MSI setup project that the user runs?
AnthonyWJones
XBAP ended up been the solution. If I could I would use Silverlight but since the company doesn't allow anything in Silverlight I will use XBAP. Thanks.
Helton Valentini