Have you ever got that annoying "Access Denied" when using Gacutils to ad an dll to GAC? Well....I have. The reason to my problem was that (as the error says) I had no access to add dll:s into it. I am administrator on my machine, so I think it´s a little bit confusing.
This command did it for me:
CACLS c:\WINDOWS\assembly /e /t /p [DOMAIN|MACHINENAME]\useraccount:F
CACLS is an application that can display or modify the Access Control List (ACLs) of files.
So, what I´m telling my OS (Windows XP) is that my user (machinename\useraccount) should have full rights (the :F after my user) to the WINDOWS\assembly (GAC) folder. /e tells CACLS that I want to edit ACL instead of replacing it. /t tells it that those changes should be applied to this folder and it´s subfolders. /p tells the application that my users access rights should be replaced.
For more info, type CACLS /? in CMD.
FYI: In Vista CACLS is deprecated. Use Icacls instead.