58

I switched over visual studio 2010 express, to visual studio 2013. Now, whenever I try to test the code, he says /bin/release/app.publish access is denied, giving back a error and forcing me to manually delete the folder. Every single time.

Why is visual studio attempting to create that path in the first place? Whenever I go there he is empty anyways.

General Grievance
  • 4,555
  • 31
  • 31
  • 45
desiredness
  • 593
  • 1
  • 4
  • 6

1 Answers1

118

I was experimenting with ClickOnce, then decided against using it, then started noticing a MyApp.application file and app.publish folder in my bin directory. Unchecking "Enable ClickOnce security settings" on the Security tab did the trick for me.

ClickOnce Security Settings

Nick Spreitzer
  • 10,242
  • 4
  • 35
  • 58
  • If you don't use ClickOnce, you might also want to clean up the csproj file itself. The property groups `ManifestKeyFile` and `GenerateManifests` aren't needed. Same goes for the `app.manifest` file – Norbert Hüthmayr May 04 '21 at 19:01
  • 1
    2019 user here. I think this got enabled for me when I tried to see what my options were for Publishing using the publish wizard. Somewhere along that line, it may have gotten checked. – General Grievance Feb 02 '23 at 21:36