Strong Name Assemby

C

Chris

I have a strong named assembly. It installs fine on my XP Pro Machine via
the .net configuration tool. When I use the same tool to install it on a
W2003 machine it says it isn't strongly named.
As I don't have vs.net. Ihave been compliling my vb file as a module and
then using al.exe to sign it with a strong name. It seems to work on my
machine. When I copy the dll to the 2003 machine it doesn't. Does it need
any additional files than the dll. Also the W2003 machine is .net v2 whereas
my machine is .net v1. Any ideas? Regards, Chris.
 
R

Richard Grimes

Chris said:
I have a strong named assembly. It installs fine on my XP Pro Machine
via the .net configuration tool. When I use the same tool to install
it on a W2003 machine it says it isn't strongly named.
As I don't have vs.net. Ihave been compliling my vb file as a module
and then using al.exe to sign it with a strong name.

I don't understand why you think you need VS.NET to sign the assembly.
You use the <AssemblyKeyFile> attribute in the code (or in v2.0, the
/keyfile switch) to indicate the location of the file containing the
key. That way you do not have to compile the code as a module, you can
compile it as an assembly.
It seems to work
on my machine. When I copy the dll to the 2003 machine it doesn't.
Does it need any additional files than the dll. Also the W2003
machine is .net v2 whereas my machine is .net v1. Any ideas? Regards,

Well, if you create an assembly with al, around the module, then you
need to deploy all the files to your W2003 machine, so that will mean at
least two files (the assembly file that contains the manifest and the
module). I suspect that this is why the installation fails. My Fusion
workshop shows the details, in C#.

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top