“Access to the Registry Key Denied” when building a .NET DLL for COM Interop
Objective : build a C# DLL with COM interop to be called by Delphi on another environment. Problem : Windows is blocking my build, saying that I don't have privileges to edit the registry. Context: I'm using Windows 8, Visual Studio 2012, UAC is turned off. I'm using RGiesecke's DllExport to annotate with [DllExport] the methods that I want to export as an Dll. I'm using [ComVisible(true)] as suggested here . My solution platform target is x86 I edited my solution's build propertires and checked Build > Output > Register for COM Interop I edited by AssemblyInfo.cs and enabled [assembly: