Error Reading Key File .snk
Groups Pictures & Albums Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page... Thread Tools Rating: Display Modes #1 12-02-2004, 08:35 AM CRogers Registered User Join Date: 07-02-2003 Posts: 6 "Error reading key file" when compiling VS.NET web app I have a web app whose assembly is strongly named. Compilation within VS.NET works fine. Compiling during a build fails with the error vbc : error BC30140: Error creating assembly manifest: Error reading key file 'path\to\my.snk' -- The system cannot find the path specified. Compiling non-web apps using this same key file works fine as well. Any advice? CRogers View Public Profile Find all posts by CRogers #2 12-02-2004, 09:48 AM CRogers Registered User Join Date: 07-02-2003 Posts: 6 Follow-up: The
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 http://www.kinook.com/Forum/showthread.php?t=676 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 http://stackoverflow.com/questions/12968756/cryptographic-failure-error-and-metadata-file-for-dll-error 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 proje
the file specified + Ask a Question Need help? Post your question and get tips & solutions from a community of 418,544 IT Pros & Developers. It's quick & easy. Error reading key file https://bytes.com/topic/visual-basic-net/answers/584636-error-reading-key-file-ourkey-snk-system-cannot-find-file-specified '..\..\..\OurKey.snk' -- The system cannot find the file specified P: n/a Ben Hi We have http://geekswithblogs.net/AskPaula/archive/2011/11/11/147659.aspx setup a Strong Name for our Applications, but are having problems with the essembly throwing an error: Error creating assembly manifest: Error reading key file '..\..\..\OurKey.snk' -- The system cannot find the file specified.
2016 (1) January 2016 (1) December 2015 (3) September 2015 (4) May 2015 (1) April 2015 (3) March 2015 (1) January 2015 (1) July 2014 (1) June 2014 (2) May 2014 (2) April 2014 (2) December 2013 (2) October 2013 (4) September 2013 (5) August 2013 (3) July 2013 (2) March 2013 (8) November 2011 (3) October 2011 (3) September 2011 (2) August 2011 (2) July 2011 (2) June 2011 (5) May 2011 (3) February 2011 (2) November 2010 (1) October 2010 (3) September 2010 (2) August 2010 (1) May 2010 (2) November 2009 (2) August 2009 (2) June 2009 (2) May 2009 (4) March 2009 (5) January 2009 (4) December 2008 (5) November 2008 (3) September 2008 (4) August 2008 (2) July 2008 (2) June 2008 (1) May 2008 (4) April 2008 (1) March 2008 (5) February 2008 (2) January 2008 (7) Post Categories Programming Software General PowerShell Personal iPhone Food Image Galleries sql dba .NET Development Enterprise Integration BizTalk Gurus Entertainment - Games Java Development Mobile/PDA Development Professional Affiliations Association of Professionals in Business Management Computer Professionals for Social Responsibility Data Management Association Institue of Electronics and Electronic Engineers Metropolitan Design and Development Modern Language Association Syndication: RSS ATOM News Copyright © 2008-2016 Paula DiTallo Tag Cloud Microsoft more tags... << How do I run (execute) a .bin file in Linux (Ubuntu) ? | Home | SQL Server 2012: How do I set "Edit top" rows to a different number? >> How do I fix the error: CS1548: Cryptographic failure while signing assembly ? The full error in Microsoft Visual Studio on a compile looks like this: error CS1548: Cryptographic failure while signing assembly 'C:\Program Files\Microsoft SQL Server\100\Samples\Analysis Services\Programmability\AMO\AMOAdventureWorks\CS\StoredProcedures\obj\Debug\StoredProcedures.dll' This is likely due to a missing strong key pair value file. The easiest