Why did I need a strong name?

J

jm

I was attempting to use SHDOCVW.dll in my C# program. I added the COM
reference to it and it created the Interop.SHDocvw.dll for the Runtime
Callable Wrapper as expected. However, it said that "strong name" was
false.

What I did was go create a new strong name by:

sn -k mykeyfile.snk

This created the .snk file and I copied this to the files where my
solution file was. Now, when I went back to the Interop.SHDocvw.dll
and looked at its properties it said "strong name" true.

I do not understand what just happened. I knew it would work from
experience, but I really don't know *why* it worked. I was hoping
someone could help explain it to me.

I thought the strong name was just for shared assemblies that all .NET
programs would be able to use. I wasn't doing that, I thought.

Thank you for your time.
 
J

jm

I thought this was fairly common. No?


jm said:
I was attempting to use SHDOCVW.dll in my C# program. I added the COM
reference to it and it created the Interop.SHDocvw.dll for the Runtime
Callable Wrapper as expected. However, it said that "strong name" was
false.

What I did was go create a new strong name by:

sn -k mykeyfile.snk

This created the .snk file and I copied this to the files where my
solution file was. Now, when I went back to the Interop.SHDocvw.dll
and looked at its properties it said "strong name" true.

I do not understand what just happened. I knew it would work from
experience, but I really don't know *why* it worked. I was hoping
someone could help explain it to me.

I thought the strong name was just for shared assemblies that all .NET
programs would be able to use. I wasn't doing that, I thought.

Thank you for your time.
 

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