Embed Com / ActiveX Applet?
Posted on 2007-10-02
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)
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 "Executable Not Found";
catch (Exception Ex)
return Ex.Message + " : " + Ex.StackTrace;