Error Reading Key File Keyfile.snk
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 Cryptographic failure error and metadata file for dll error up vote 2 down vote favorite We have purchase one software from another company with source code. But when i build it, following two errors had occurring. I researched lot on it. But cant find solution. Generally .snk files are for DLLs (to add it in GAC global assembly cache) i can't found PublicPrivateKeyFile.snk in app folder or anywhere. Application references number of dlls,so same error is shown for every DLL. What should i do to resolve this errors. Error Cryptographic failure while signing assembly ...\obj\Debug\xyz.dll' -- 'Error reading key file 'c:\Users\Administrator\Desktop\NewCode\abc\Libs\PublicPrivateKeyFile.snk' -- The system cannot find the file specified.` Error metadata file 'C:\Users\Administrator\Desktop\NewCode\abc\bin\Debug\xyz.dll' could not be found What is metadata file? How to resolve both errors? c# asp.net share|improve this question edited Oct 19 '12 at 6:47 iltempo 10.1k53457 asked Oct 19 '12 at 6:42 user1758412 188 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote You can't. Without their .snk (strong name key file) you cannot sign as them. Look inside of the AssemblyInfo.cs class for the directive [assembly: ReferenceKeyFile] and comment that out to remove the signature. You will then be able to use it locally. A second option is to make your own signature for the .dll. Then go through the various ways of making sure that all references to that public key are the same and also figuring out what that key is. share|improve this answer answered Oct 19 '12 at 6:45 Travis J 50.4k16110175 so if i am creating my own .snk file..then each assembly have its own .snk file or it will common for other dlls.Beacause in their app,they having multiple sub projects and each project is referencing same file PublicPrivateKeyFile.snk –user1758412 Oct 19 '12 at 6:50 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 P
activation email could not send to your email. Please try again. Toggle navigation PRODUCTS Download Trial Live Demo What’s New Free Community License Available Unlimited License Starts At $ 3,995 COMPONENTS AND FRAMEWORKS WEB ASP.NET MVC ASP.NET Core ASP.NET Web Forms JavaScript LightSwitch Silverlight DESKTOP Windows Forms WPF UWP MOBILE Xamarin UWP JavaScript WinRT Windows Phone Orubase FILE FORMATS Excel PDF Word PowerPoint DATA SCIENCE Predictive Analytics ENTERPRISE SOLUTIONS Dashboard Platform Report Platform Big Data Platform Data Integration Platform RESOURCES E-Books White Papers Case Studies .NET FAQ SYNCFUSION PLUS Plus Benefits FREE ICONS Metro Studio CONSULTING SUPPORT DIRECT-TRAC SUPPORT SYSTEM COMMUNITY http://stackoverflow.com/questions/12968756/cryptographic-failure-error-and-metadata-file-for-dll-error FORUMS KNOWLEDGE BASE ONLINE DOCUMENTATION PURCHASE FREE TRIALS COMPANY ABOUT US PRESS RELEASES BLOG CAREERS CONTACT US SIGN IN 0 SIGN IN Sorry, an error occurred while attempting to log in. Email Address Forgot password? Password Keep me logged in SIGN IN Don’t have an account? SIGN UP FOR FREE My account Create a support incident SIGN OUT Home FAQ ASP.NET Basic Why do I get error m... Search FAQ Platform https://www.syncfusion.com/faq/1408/why-do-i-get-error-message-error-creating-assembly-manifest-error-reading-key-file-key-snk-the-system : ASP.NET| Category : Basic Why do I get error message "Error creating assembly manifest: Error reading key file 'key.snk' -- The system cannot find the file specified" Check the location of the key.snk file relative to the assembly file. Provide an explicit path or a relative path. WEB ASP.NET MVC ASP.NET Core ASP.NET Web Forms JavaScript LightSwitch Silverlight DESKTOP Windows Forms WPF UWP FREE ICONS Metro Studio MOBILE Xamarin UWP JavaScript WinRT Windows Phone Orubase FILE FORMATS Excel PDF Word PowerPoint DATA SCIENCE Predictive Analytics ENTERPRISE SOLUTIONS Dashboard Platform Report Platform Big Data Platform Data Integration Platform SUPPORT Create Support Incident Forums Knowledge Base Online Documentation COMPANY About Us News & Events Blog Careers Contact Us RESOURCES E-Books White Papers Case Studies .NET FAQ SYNCFUSION PLUS Plus Benefits CONTACT US Toll Free: 1-888-9DOTNET Fax: +1 919.573.0306 US: +1 919.481.1974 UK: +44 20 7084 6215 sales@syncfusion.com Privacy Policy | Contact Us | Sitemap Copyright © 2001 - 2016 Syncfusion Inc. All Rights Reserved Privacy Policy | Contact Us | Sitemap Copyright © 2001 - 2016 Syncfusion Inc. All Rights Reserved You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Getting Started/Help !! Cryptographic failure while signing assembly Help !! Cryptographic failure while http://forums.asp.net/t/1651017.aspx?+Help+Cryptographic+failure+while+signing+assembly signing assembly [Answered]RSS 5 replies Last post Feb 15, 2011 11:08 AM by krishnada25 ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Reply krishnada25 Member 218 Points 941 Posts Help !! Cryptographic failure while signing assembly Feb 08, 2011 02:07 PM|krishnada25|LINK Hi error reading All, All I am trying to do is toCreate an assembly strongname it andput it in GAC step 1: I cretaed a class library ClassLibraryMultiply namespace ClassLibraryMultiply { public class Class1 { public int Multiply (int a, int b) { return a * b; } } } Strong named error reading key this class library Now I can see SNClassLibrarymultiply.snk in the debug folder. Now I opened the assemblyinfo.cs [assembly:AssemblyDelaySign(false)] [assembly: AssemblyKeyFile(@"C:/Users/Crusader/Documents/Visual Studio 2008/Projects/Practice/ClassLibraryMultiply/ClassLibraryMultiply/Bin/Debug/SNClassLibraryMultiply.snk")] [assembly:AssemblyKeyName("")] The second statement is giving me the errors saying cryptographic failure while signing the assembly, error reading the key file. I also tried the second statement with out @ and [assembly: AssemblyKeyFile("..\\..\\SNClassLibraryMultiply.snk")] Both did n't work any other inputs?? Please Don't mark the Question I posted as Answered until I do it. Thanks, Kris Reply doyleits Contributor 2500 Points 547 Posts Re: Help !! Cryptographic failure while signing assembly Feb 08, 2011 05:30 PM|doyleits|LINK Put the SNK file in your project folder, not the bin folder. The contents of the bin might be getting removed during the build process. The assembly is signed during the build process, and then the artifacts are moved/copied to the bin folder. Since the .snk file is missing, you get the crypto failure. Once you move the SNK file, in AssemblyInfo.cs: [assembly: AssemblyKeyFile(@"C:/Users/Crusader/Documents/Visua