title: Azure, App service, "The system cannot find the file specified"
body: <p>Having an App in Azure app services. A .NET web project.</p>
  
  <p>Running the line:</p>
  
  <pre><code>System.IO.File.ReadAllText("D:\home\site\wwwroot\Prod-Enterprise-Test-6-26-2016-credentials.publishsettings")
  </code></pre>
  
  <p>will throw an exception</p>
  
  <blockquote>
    <p>The system cannot find the file specified.</p>
  </blockquote>
  
  <p>you can see the file is there and believe me it is not miss spelling, locally it works fine and fail when deployed.</p>
  
  <p><a href="https://i.stack.imgur.com/1fBD4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1fBD4.png" alt="The file is in the correct path as you can see"></a></p>