ASP.NET MVC System.UnauthorizedAccessException Access to the path is denied
<p>I am new in ASP.NET MVC and I have a problem. When I publish my web application on my <a href="https://appharbor.com/" rel="nofollow">AppHarbor</a> hosting account, and when I go to change file I get a <code>System.UnauthorizedAccessException</code> exception: </p>

<pre><code>Access to the string "path" is denied in this part of code

string path = Server.MapPath("~/Content/currentImage.txt");
FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write);
</code></pre>

<p>I try to add <code>&lt;identity impersonate="true"/&gt;</code> in <strong>Web.config</strong> but it still doesn't work.</p>

<p>Any suggestions?</p>