Unable to emit assembly  
Author Message
Alisa619





PostPosted: Common Language Runtime, Unable to emit assembly Top

Hi,

I have an excel program that was created in VS2005/VSTO. I am notsure if this part of the issue. The program runs great but when I added in a class from a different developer, who designed it. I am getting this error:

Error 4 Unable to emit assembly: Referenced assembly 'LoginForm05' does not have a strong name

He did create a strong key added to the program, checked it back into source safe, then I added to my program….. I am not sure if I need to create a key too for his program Or if there is something else he needs to do Or is this where I need him to sign his project before I added it my project

I do have strong key for my program. I was told that has caused him to need one for his class

Thank you,




.NET Development6  
 
 
Shawn Farkas - MS





PostPosted: Common Language Runtime, Unable to emit assembly Top

Assemblies with strong names may only reference other assemblies with strong names. From the error message,this means that whichever assembly in your project is trying to call methods in LoginForm05 has a strong name while LoginForm05 does not. You can solve this either by removing the strong name from the referencing assembly or by adding one to LoginForm05.

-Shawn



 
 
GeorgeKumpuckal





PostPosted: Common Language Runtime, Unable to emit assembly Top

Thanks and it help... I went through many articles for technical clarity and only this article helped. "Assemblies with strong names may only reference other assemblies with strong names"

it means

If Assembly A has a reference of xxx.snk then

Assembly B which uses Assembly A should also have a reference of xxx.snk

Awesome

george