Error 1 Unable To Emit Assembly Referenced Assembly
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unable to emit assembly up vote 2 down vote favorite I have created a visual basic class library named dataLibrary and have added it as a reference in a visual studio tools for application program in infopath 2007, and imported it. Now when I try using a class defined in the library, I get the following error: "Unable to emit assembly: Referenced assembly 'dataLibrary' does not have a strong name" Can somebody help me out here, I've never seen anything like this before. vb.net infopath-2007 vsta share|improve this question asked Feb 23 '12 at 9:20 Raymond8893 1145 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote The issue you are likely encountering is that your class library has not been signed with a strong name, however your assembly IS signed. Resolution: Either don't sign your assembly and leave the class library unsigned or sign both the assembly and class library. For more info, take a look at this solid answer on the topic: Why would I see "Unable to emit assembly: Referenced assembly ... does not have a strong name" when trying to add a reference? share|improve this answer answered Mar 14 '12 at 17:24 Somantra 483415 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you'r
Internals and Architecture Question 0 Sign in to vote 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 http://stackoverflow.com/questions/9410099/unable-to-emit-assembly 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. https://social.msdn.microsoft.com/Forums/vstudio/en-US/e6a6be79-540d-49d0-a1cd-c188878ca823/unable-to-emit-assembly?forum=clr I was told that has caused him to need one for his class? Thank you,
Wednesday, May 17, 2006 2:18 AM Reply | Quote Answers 1 Sign in to vote 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 Tuesday, May 23, 2006 11:43 PM Reply | Quote Moderator All replies 1 Sign in to vote 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 Tuesday, May 23, 2006 11:43 PM Reply | Quote Moderator 0 Sign in tReferenced assembly AxInterop.MSFlexGridLib does not have a If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can http://www.vbforums.com/showthread.php?594573-RESOLVED-Unable-to-emit-assembly-Referenced-assembly-AxInterop-MSFlexGridLib-does-not-have-a post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 2 of 2 Thread: [RESOLVED] Unable to emit assembly: Referenced assembly AxInterop.MSFlexGridLib does not have a Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Dec 4th, 2009,01:23 PM #1 CherryPickle View error 1 Profile View Forum Posts Thread Starter Member Join Date Aug 2009 Location South Africa Posts 40 [RESOLVED] Unable to emit assembly: Referenced assembly AxInterop.MSFlexGridLib does not have a Hi All I have recently upgraded an VB6 project to vs2008. I was almost finished when the following error occured. Unable to emit assembly: Referenced assembly AxInterop.MSFlexGridLib does not have a strong name Prior to this error appering, I tested my app error 1 unable several times and it was fine. Only after publishing it did the error appear. I have tried all solutions I could find, but nothing helps. I have read http://msdn.microsoft.com/en-us/library/aa302324.aspx, but I cannot get it to work. Please help. Reply With Quote Dec 4th, 2009,04:00 PM #2 CherryPickle View Profile View Forum Posts Thread Starter Member Join Date Aug 2009 Location South Africa Posts 40 Re: Unable to emit assembly: Referenced assembly AxInterop.MSFlexGridLib does not hav I solved the problem by copying the AxInterop.MSFlexGridLib.dll and Interop.MSFlexGridLib.dll from a backup of the same project, and it now seems to work. Reply With Quote Quick Navigation Visual Basic .NET Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Visual Basic Visual Basic .NET VB.net CodeBank Visual Basic 6 and Earlier CodeBank - Visual Basic 6 and earlier Modern Windows Experience (Metro) Office Development Mobile Development ASP, VB Script Database Development Reporting API Games and Graphics Programming Game Demos COM and ActiveX Network Programming Visual Basic FAQs Slow Chat with the Microsoft Visual Basic team .NET ASP.NET Visual Basic .NET MVC .Net C# WPF, WCF, WF Silverlight .NET Architecture and Design General General Developer Forum IoT, IoE, and Maker Forum Testers and Testing Application Testing Application Deployment Linux Develo