1

I've made some custom mods to two files in the FogBugz 7.3.3 source (essentially carrying forward changes I've had since v5). I went to rebuild the application after making these changes to the latest build today, but I got this error:

"error CS1548: Cryptographic failure while signing assembly 'e:\fogbugz\website\bin\FogBugz.dll' -- 'Access is denied.'

I've tried doing the following to work around it:

  1. Obviously, before starting, I suspended the WWW publishing service.
  2. Deleted FogBugz.dll before running build.bat
  3. Granted "Everyone" "Full Control" over the FogBugz folder tree (and immediately removed it when it didn't work)
  4. Removed the token -keyfile:".\accessories\FogCreek.snk" from the batch file.
  5. Copied the previous .snk file from the archived V7.2 folder.
  6. Checked this forum, StackOverflow, and MSDN for more information.
  7. Turned around three times, patted my dog, and shouted a magical incantation using short Anglo-Saxon words I'd rather not repeat here.

The behavior was consistent after each test.

The server is Windows Server 2008 R2 Standard x64. IF it matters, the only thing that changed on the server since I applied this procedure to FogBugz 7.2 is that I've installed the .NET Fx 4.0.

The application works fine, but I like my little mods, and they're too idiosyncratic to elevate to a formal feature request.

Any suggestions?

flag
Out of curiosity, why delete FogBugz.dll beforehand? – Rob Sobers Aug 2 2010 at 19:32
I thought the compile process produced the fogbugz.dll, and some process might be holding a reference to it. Before I started wantonly killing processes, I hit the delete key. – David Braverman Aug 3 2010 at 12:08
Fair enough :) I just replied via email with a suggestion. – Rob Sobers Aug 3 2010 at 16:06

2 Answers

1

Hmmm. Seems like something we need to troubleshoot directly, as we've not seen it before.

Can you contact us?

link|flag
1

Thanks to Rob at FogCreek for figuring this out.

Said Rob:

=====

I just tested this on a brand new Windows 2008 R2 VM with FogBugz 7.3.3 and it worked like a champ. I didn't, however, install .NET 4.0 FX yet. I'll do that next. In the meantime, can you check out the following link:

http://thethoughtfulcoder.com/2010/03/16/Strong-Name-Access-Denied-Error-On-Windows-7-64bit-From-Visual-Studio-And-Snexe

I think the user you're logged in as might be missing permissions on the C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys folder in Windows.

Let me know if this works for you.

Regards,

Rob

=====

Yes, it turns out machine admins aren't automatically granted permissions to that folder on Win 2008 R2. After I set Modify permissions on the folder, FogBugz built itself in 45 seconds.

link|flag
Awesome! I'm glad this worked. – Rob Sobers Aug 4 2010 at 12:57

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.