473,326 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Stronged key Interop for "User Control"

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?

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
Nov 16 '05 #1
3 2227
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

Tamir Khason wrote:
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?

Nov 16 '05 #2
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

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "

"Graham Pengelly" <gr****@REMOVEMEmainlineconsultants.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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

Tamir Khason wrote:
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?

Nov 16 '05 #3
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."

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Seth Guard | last post by:
(Sorry for the cross-post, but no one responded to my other thread.) When developing a web page in VS.Net, I see everything in WYSIWYG format. And when I am creating a User Control, I see that...
2
by: todd | last post by:
Hi all. I inherited this code from a contractor. It is a .NET user control that runs on the client side (ie) on machines with the framework installed. I have been mucking around to get it work...
2
by: VB Programmer | last post by:
I created a simple user control and placed it on another page. Often I get this error: "Could not reformat the document due to line 27. The original format was restored." Line 27 in the...
4
by: Guadala Harry | last post by:
Is there any way for one Session to remove and update objects in another Session? I seriously doubt it, but thought I'd ask. Here's why: I have some data that is unique per user (or per session -...
8
by: Ravi Ambros Wallau | last post by:
Hey guys: What can I do when an "Error Creating Control" is displayed on the form (instead of the control), and a tooltip indicating the error never is displayed? Is there some log, some hidden...
1
by: Paul | last post by:
I create a text box type of User Control. I put an instance of the user control on a form. Everything is working fine. However, when I change the font size, the UC positions itself down and to...
1
by: rmgalante | last post by:
I was wondering if anyone knows whether MS has a fix for the Menu Control. If the page is loading while you mouse over a menu control with child menus that pop out, you can generate the following...
4
by: Scott McNair | last post by:
Hi, I'm creating a user control that has absolutely no visual pieces to it... it's essentially a piece that sniffs a serial port awaiting incoming data. I know that there are several controls...
5
by: WP | last post by:
Hello, I need to communicate with a db2 database from a java program and this java program needs to check which "user tables" there are. I came up with the following query which I tried in Control...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.