So I was writing an application that requires access to the registry. I had not touched any build settings, wanting to get the thing working before I added the other touches
I know this an old question but I came here two years later so:
You can disable the ClicKOnce from the Security tab on project properites to help the issue; see below: