Error building BlogEngine.Net – Cryptographic failure ‘Access is denied’

January 12, 2009

BlogEngine.NET v1.4.5 has been easy to install and configure, but I ran into one little hiccup while trying to compile the full source code solution:

Cryptographic failure while signing assembly 'BlogEngine.Core.dll' -- 'Access is denied.'

Unfortunately I’m using Windows Vista and had opened Visual Studio as a normal user. The solution in this case is to simply open it via ‘Run as administrator’ and the error will go away.

Another solution when getting an ‘Access is denied’ error while signing assemblies is to grant the current user full control to your %ALLUSERSPROFILE%\Application Data\Microsoft\Crypto\RSA\MachineKeys directory (location in Windows XP, anyway)

See also: Access Denied While Signing Assembly

blog comments powered by Disqus

About me

I'm a consultant with Headspring in Austin, TX. My passion is creating web-based applications that are well crafted and solve real problems for real people. Want to know more? Check out my about page.

WTF is all this code? I came here for food!

My wife made a new year's resolution to try out at least one new recipe each week. Want to know what she's been feeding me? resolutionfood.blogspot.com