Error Importing Key Object Already Exists Visual Studio 2008
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 Certificate problem - Error Importing Key “object already exists” after Windows 7 upgrade up vote 10 down vote favorite 2 I have about 60 .pfx files for all major assemblies for a project. They are unique files, but I use the same password for all. After an upgrade from Windows Vista to Windows 7 I get an Import Key File dialog requesting the password for them when I click Build in Visual Studio 2008. This would have been fine, but after inserting the password I get an error dialog: Error Importing Key - Object Already Exists. Any ideas? visual-studio-2008 windows-7 certificate pfx share|improve this question asked Aug 27 '09 at 13:29 user134926 19119 add a comment| 2 Answers 2 active oldest votes up vote 12 down vote Solved it! After the upgrade from Vista to Windows 7 the permissions of the folder containing certificates C:\Users\All Users\Microsoft\Crypto\RSA\MachineKeys had changed. After changing the permissions granting full access the problem went away. Let me know if this was helpful to anyone! :) share|improve this answer answered Aug 27 '09 at 14:52 user134926 19119 Thank you so much!!! This was a real headache. I haven't upgraded my OS, I'm just on Windows XP, but had the exact same problem. I'm not sure how the folder permissions could have been changed. Weird! –Doctor Jones May 11 '10 at 10:36 add a comment| up vote 5 down vote I didn't really want to start changing file permissions to fix this. But the answer about file permissi
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 Error 'Object already exists' when signing an assembly using Visual Studio 2008 up vote 1 down vote favorite 1 I'm having the same issue as http://stackoverflow.com/questions/1341108/certificate-problem-error-importing-key-object-already-exists-after-windows described in several places, including in Stack Overflow question Visual Studio reporting error "PFX - Error Importing Key / Object already exists". Most people are having issues on WindowsVista and Windows7, but in my case I'm running as an administrative user on WindowsXP. I've tried all of the solutions I've found and none have worked so far. Since most of the information I'm finding is a few years old: is there some better/current information and http://stackoverflow.com/questions/10391982/error-object-already-exists-when-signing-an-assembly-using-visual-studio-2008 maybe a fix that works more often? My code signing certificate comes from Go Daddy, and it works fine with the SignTool.exe utility. I've signed a lot of EXE files built outside of Visual Studio using SignTool.exe and they all validate correctly. I tried signing my EXE file for my current project this way, with SignTool.exe, but there appears to be some extra issues related to the ClickOnce publishing I'm trying to use for this project... Hashes are not matching, and ClickOnce is still reporting as "publisher unknown" even though the EXE file is signed. visual-studio deployment clickonce code-signing share|improve this question edited Aug 28 '13 at 16:17 Peter Mortensen 10.2k1369107 asked Apr 30 '12 at 23:51 eselk 3,25943163 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted I still can't get the IDE option to work, but this worked for me and isn't too bad: Enable "Sign the ClickOnce manifests" in the IDE and select "from store" (selecting from PFX file produces the same "object already exists" error). Do not check "Sign the assembly". Add a post build event to run: c:\signtool.exe sign /f c:\cert.pfx /p password /t http://tsa.starfieldtech.com c:\project\obj\debug\myapp.exe So basically using the signtool.exe to sign was the trick, but also the manifest needs to be signed (which I let the IDE do), and the other
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen