Embed Com / ActiveX Applet?

Posted on 2007-10-02
Last Modified: 2013-11-25
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;

Question by:jklNYC
    LVL 5

    Accepted 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:
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
    zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now