Link to home
Start Free TrialLog in
Avatar of jklNYC
jklNYC

asked on

Embed Com / ActiveX Applet?

in VS 2005, I've created a custom ActiveX component. Well, I guess it's technically a COM applet.  All this applet only has one method (below) which takes in a filename and arguments, checks the client computer to see if the file exists, if it does exist, then it tries to execute the filename.

So I've signed this component using a local pfx file and registered it on my local machine. The applet, embedded in an html page works perfectly fine, but only on my local machine.

What steps do I need to do, in order for other client browsers to be able to also use this application. On other clients, when invoking the method, I get an "Automation server can't create object." How can I get this to work without having it registered on each client? Is that possible?



        public string ExecuteApp(string appFileName, string appArgs)
        {
            try
            {
                if (File.Exists(appFileName))
                {
                    Process process1 = new Process();
                    process1.StartInfo.FileName = appFileName;
                    process1.StartInfo.UseShellExecute = true;
                    process1.StartInfo.CreateNoWindow = false;
                    if (appArgs != null && appArgs != "")
                        process1.StartInfo.Arguments = appArgs;

                    process1.Start();
                    return "ok";
                }
                else
                    return "Executable Not Found";
            }
            catch (Exception Ex)
            {
                return Ex.Message + " : " + Ex.StackTrace;
            }
        }

ASKER CERTIFIED SOLUTION
Avatar of ebertk
ebertk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin