create file on localhost (Web server physical path)
<p>Currently I am working on <strong>asp.net</strong> website and I am not very much familiar with asp.net. I have a <code>WebForm</code> and when user clicks on <strong>Submit</strong> button a <code>.txt</code> file should be get created on server(Text File name is ID entered by user which is unique.)<br>
I used following to create the file.  </p>

<pre><code>File.Create( Server.MapPath("~") + id + @".txt");  
</code></pre>

<p>But this gives me error when the site is running on the localhost of my pc.<br>
<strong>Access to the path 'C:\inetpub\wwwroot\XXX\YYY.txt' is denied.</strong>  </p>

<p>This is something related with access permission. What should I do to fix this. Please advice me.</p>
