IdentityReference refer = new NTAccount(Environment.UserDomainName, Environment.UserName); RegistryAccessRule full = new RegistryAccessRule(refer, RegistryRights.FullControl, AccessControlType.Allow); RegistrySecurity sec = new RegistrySecurity(); sec.AddAccessRule(full);
the above code should add the keys necessary to register a VSTA application to prepare it to create project templates. problem is, .NET is telling me it can't change the registry. Are my security checks incorrect? i'm on a corporate network, but i'm local admin on all machines in my domain, including of course my own.
wow. figures it would be something that simple. thanks.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.