title: “Could not find a part of the path” Error For File Read Operation in Azure WebApp
body: <p>I have <code>MVC application</code> which is having browse button I'm selecting file any location and reading file content using path and then process the content.</p>
  
  <p>Works fine in local but when published on azure as web app obvious it was not able to get the file system path but how to handle this?</p>
  
  <blockquote>
    <p>Could not find file 'D:\Windows\system32\mydata.json'.</p>
  </blockquote>
  
  <p><strong>Index.cshtml</strong></p>
  
  <pre><code> &lt;label&gt;File Path&lt;/label&gt;
      &lt;table&gt;
        &lt;tr&gt;
          &lt;td&gt;@Html.TextBoxFor(m =&gt; m.filePath, new { type = "file", @class = "input-file" }) )&lt;/td&gt;
          &lt;td&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
  
        &lt;/tr&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p><strong>HomeController.cs</strong></p>
  
  <pre><code>private static void Test(string filepath)
          {
              string data = System.IO.File.ReadAllText(filepath);
              JArray array = JArray.Parse(data);
  </code></pre>