'Interop.SHDocVw' does not have a strong name

G

Guest

I use web browser control(shdocvw.dll) in my winform application. When I put
a strong name into the project and change the assembly, I got following error
message.
"Assembly generation failed -- Referenced assembly 'Interop.SHDocVw' does
not have a strong name" and
"Assembly generation failed -- Referenced assembly 'AxInterop.SHDocVw' does
not have a strong name"

I need to compile the application with proper version and strong name. Is
there any way to work around this?

Thanks in advance!

Zheng
 
M

Mattias Sjögren

I need to compile the application with proper version and strong name. Is
there any way to work around this?

Yes, give the interop assemblies a strong name too (for example using
AxImp.exe /keyfile).



Mattias
 
Joined
Apr 10, 2008
Messages
1
Reaction score
0
dependency

the problem with this is that even if you get both dll's signed AxIterop.SHDocVw.dll has a reference to Interop.SHDocVw.dll with no public key, so if you are really using the dll it would not help

Mattias Sjögren said:
>I need to compile the application with proper version and strong name. Is
>there any way to work around this?


Yes, give the interop assemblies a strong name too (for example using
AxImp.exe /keyfile).



Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 

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