Access to path **** is denied
<p>I know there is a ton of stuff on this already and have tried a few things but have had no luck in fixing it. </p>

<p>I have a C# program that has built an XML Document and im trying to save it to a folder thats in MyDocuments. I am getting the folliwing exception when calling the <code>XMLDoc.Save</code> function.</p>

<pre><code>Access to the path 'C:\\Users\\Ash\\Documents\\ConfigOutput' is denied
</code></pre>

<p>I have visual studio running as administrator. Any thoughts on how to fix it?</p>

<p>I have tried saving onto the desktop and into the C:\ folder aswell. </p>

<p>I am using windows 7.</p>

<p>Running the built executable also doesnt seem to work.</p>

<p>Apologies guys it seems I was being stupid. I had indeed not added a filename to the output path. I'll not delete the question incase anyone else gets done by this gotcha! Thanks for all the help/comments.</p>
