Vault 3.0.2 Installation Removes ACEs From MachineKey ACL

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Derek Simon
Posts: 1
Joined: Sat Feb 05, 2005 4:27 pm
Location: Rhode Island, USA
Contact:

Vault 3.0.2 Installation Removes ACEs From MachineKey ACL

Post by Derek Simon » Sat Feb 05, 2005 4:44 pm

After running the installation for Vault 3.0.2, I went to compile an ASP.NET application only to receive an error:

error CS1548: Cryptographic failure while signing assembly '' -- 'Access is denied. '

Now, I've gotten this error before, since I run under a non-administrator account. I corrected it by adding my user account to the ACL on the following directory:

%SYSTEMROOT%:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys

Suffice it to say, the install shouldn't be deleting the other ACEs. I assume it's a problem with the installer, since the NTFS APIs can and will remove inherited ACEs if not used correctly.
Derek Simon
Incandesoft LLC
+1 (401) 451-9197

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Sat Feb 05, 2005 9:51 pm

Suffice it to say, the install shouldn't be deleting the other ACEs.
Derek:

The installation tries to grant permission on %ALLUSERSPROFILE%\Application Data\Microsoft\Crypto\RSA\MachineKeys for the account specified during the installation. If your installing with an account which cannot modifiy permissions on that directory, that would explain a failure. But in no means does the installer add or remove any other accounts to the ACL on the RSA directory.

Note, when Vault Server runs into this permissions based problem, the edb3f753ca89beb7d17f32a80a447d75_* file is created with incorrect permissions and content. The fix is to delete the file, and grant read/write/create permissions on the directory for Vault's ASP.Net process account.
Jeff Clausius
SourceGear

Post Reply