Error Reading Key File 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 http://www.kinook.com/Forum/showthread.php?t=676 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 http://stackoverflow.com/questions/12968756/cryptographic-failure-error-and-metadata-file-for-dll-error 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
the file specified + Ask a Question Need help? Post your question and get tips & solutions from a community of 418,544 IT Pros & Developers. https://bytes.com/topic/visual-basic-net/answers/584636-error-reading-key-file-ourkey-snk-system-cannot-find-file-specified It's quick & easy. Error reading key file '..\..\..\OurKey.snk' -- The system cannot find the file specified P: n/a Ben Hi We have setup a Strong Name for our Applications, but are having http://www.thecodingforums.com/threads/error-reading-key-file-mykey-snk.113972/ problems with the essembly throwing an error: Error creating assembly manifest: Error reading key file '..\..\..\OurKey.snk' -- The system cannot find the file specified.
am deploying my ASP.NET 2.0 bits. Everything works fine in dev, but when I move it to test I get the following: CS1548: Cryptographic failure while signing assembly 'c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\internal-test\f51ce07b\7f3f6ce4\App_Code.9rzbep5y.dll' -- 'Error reading key file 'MyKey.snk' -- The system cannot find the file specified. ' With my 1.1 bits, I never had the snk file on the site. However, I tried putting the snk file in the root directory. No luck. I am sure I am doing something silly, but I can't figure it out. Any thoughts? Thanks in advance. -craig =?Utf-8?B?Y3JhaWd3aHVudA==?=, Nov 21, 2005 #1 Advertisements Daniel Fisher\(lennybacon\) Guest Disable delay signing -- Daniel Fisher(lennybacon) http://www.lennybacon.com "craigwhunt" <> wrote in message news:... > Hi all, > > I am deploying my ASP.NET 2.0 bits. Everything works fine in dev, but when > I > move it to test I get the following: > > CS1548: Cryptographic failure while signing assembly > 'c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET > Files\internal-test\f51ce07b\7f3f6ce4\App_Code.9rzbep5y.dll' -- 'Error > reading key file 'MyKey.snk' -- The system cannot find the file specified. > ' > > With my 1.1 bits, I never had the snk file on the site. However, I tried > putting the snk file in the root directory. No luck. > > I am sure I am doing something silly, but I can't figure it out. Any > thoughts? > > Thanks in advance. > > -craig > Daniel Fisher\(lennybacon\), Nov 21, 2005 #2 Advertisements =?Utf-8?B?Y3JhaWd3aHVudA==?= Guest Thanks for replying Daniel. I don't have delay signing enabled in my site or in my class libraries. In fact, I noticed I still have the following in all of my AssemblyInfo.cs files: [assembly: AssemblyDelaySign(false)] My snk file only needs to be present at compile time, correct? Thanks again. -craig "Daniel Fisher(lennybacon)" wrote: > Disable delay signing > > -- > Daniel Fisher(lennybacon) > http://www.lennybacon.com > > > "craigwhunt" <> wrote in message > news:... > > Hi all, > > > > I am deploying my ASP.NET 2.0 bits. Everything works fine