I am creating an ActiveX DLL assembly. I have followed this article. As the article has mentioned, I have created a .cs file (using notepad) and manually compiled it by pasting the file under \WINDOWS\Microsoft.NET\Framework\v2.0.xxxxx
and running csc /t:library AClass.cs
.
At the next step, when I try to register this assembly, using regasm AClass.dll /tlb /codebase
, it gives me a message saying this assembly needs to be signed. It does not throw any error. But, it forces me to enable 'Initialize unsigned ActiveX scripts' under IE settings for it to work.
Can you guide me on how to sign such an assembly... So that enabling the 'Initialize unsigned ActiveX scripts' is not necessary for all clients.
I am using Windows Server 2012 machine with VS2012..