Stronged key Interop for "User Control"

  • Thread starter Thread starter Tamir Khason
  • Start date Start date
T

Tamir Khason

I have unmanaged COM wich is ActiveX
I want to use it as signed interop user control so doing

aximp MyComActiveX.dll /keyfile:MyKey.snk
it builds MyComActiveLibX.dll wich is signed and AxMyComActiveXLib.dll wich
is interoped ActiveX control. This one Ax... DOES NOT SIGNED !!!
and when using it inside the form I recieve "Assembly generation failed --
Referenced assembly 'AxMyComActiveXLib' does not have a strong name

What is the problem and what I'm missing?
 
Hi Tamir

I have had the same problem hosting the Shockwave Flash ActiveX control
inside a Windows Form which generates an unsigned assembly. I ended up
having to just remove the strong naming from the form as well to get it
to build. I know that this is no help to you whatsoever but sometimes it
is nice to know you are not alone...

Good luck. I'll be interested to see if anyone has a solution.

Graham
 
OK sloved it. Amazing !, but just put it in the SAME DIRECTORY
1) Unmanaged ActiveX
2) Key Pair file
and run it from THE SAME DIRECTORY
Now it's working.
It looks like bug, but while running it from different directories it BUILD
interops without any errors, BUT unsigned!!!
Tnx to all
 
Hi Tamir,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you're trying to sign an ActiveX
control, it fails with the aximp command line. If there is any
misunderstanding, please feel free to let me know.

I think you can try to use the full path for both the key file and the dll.
That might help aximp to find them.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top