MVC Application is working fine in IIS Express but not working in Local IIS web server
<p>I have  created a web application to open a file (Whatever like notepad, excel, PDF, etc.) in local directory. File is opening when running it in IIS Express but in IIS local Web server, it's not opening the file. </p>

<p>I have the files inside the project in Visual studio. </p>

<pre><code>System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"D:// Path ");

IEnumerable&lt;System.IO.FileInfo&gt; fileList = dir.GetFiles("*.*");
var newestFile =
    (from file in fileList
    //where file.Contains(para)
    orderby file.CreationTime
    where file.FullName.Contains(para)
    select new { file.FullName, file.CreationTime })
    .Last();

Process.Start(newestFile.FullName);

return "";
</code></pre>