• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 763
  • Last Modified:

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)
                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;

                    return "ok";
                    return "Executable Not Found";
            catch (Exception Ex)
                return Ex.Message + " : " + Ex.StackTrace;

1 Solution
You need to make this a signed applet, otherwise it fails (security limits the access of all applets unless they are either signed or run locally).  For more information on creating a signed applet check this out:

Forced accept.

EE Admin

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now