error CS1548: Cryptographic failure while signing assembly. Unknown error (8013141c)

Tuesday, 7 October 2008 22:07 by RanjanBanerji

I have two computers on which I was working on a project and on one of them all of a sudden I started getting this error.  After hours of trying to figure out what went wrong I finally gave up and started to search the web.  I would have started the web search sooner but the errors surfaced soon after I upgraded to Visual Studio 2008.  Well VS 2008 had nothing to do with the error.  It turns out that on one of my two machines I ran a Windows update for a non critical patch.  I realized this after finding this post: http://www.boyet.com/Articles/SigningAssemblyLUA.html.

Thank you Julian M Bucknall.  You mention that you wasted 2 hours trying to solve this.  Well I wasted about 4.  I should have found your blog sooner.

Anyway, the solution is simple.  Give your user (whatever account you use to log onto your computer and work on Visual Studio) Full Access to the following folder: C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys

Right Click, Properties, Security Tab, Add your user and make sure it has full access.

Categories:   .Net
Actions:   E-mail | Permalink | Comments (1) | Comment RSSRSS comment feed

Comments

October 31. 2008 22:10

Dan

Thanks RanjanBanerji.  I had this problem as well, and finding this post saved me a great deal of time.  Process Monitor confirmed that I was getting "ACCESS DENIED" on the folder in question, and the security tab showed that my user had no permissions for that folder.  I added them and got a successful build.

Dan

Dan

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading