Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I know ActiveX is kinda last decade, but I'm being forced to do one anyways ;o)
I'm confused by the way this exposed COM interface works.
I've pasted my interface below. Now this works fine on my client where the assembly is registered, but when i try to upload this to my webserver and debug it on another client, it does not load the ActiveX component i call through JavaScript.

I assume this has something to do with registering the assembly? I registered the assembly with regasm with /codebase /tlb, and my assembly is signed with a strong name through visual studio.
Can anyone point me in the direction i need to take to make this work on all clients?



Regards.


C#
public interface ICmd
{
    [DispId(1)]
    void Cmd1(string dsName, string dsPath);
};

[
    Guid("F2332866-6912-47AC-846E-0F416F3D13A8"),
    ProgId("csharpAx.Cmd2"),
    ClassInterface(ClassInterfaceType.None),
    ComDefaultInterface(typeof(ICmd)),
    ComVisible(true)
Posted
Updated 5-Apr-12 23:39pm
v2
Comments
walterhevedeich 20-Apr-12 4:00am    
Did you happen to check the settings of your browser if it allows you to install ActiveX components?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900