title: Browse a file from my pc using web application in asp.net
body: <p>I have a web application which I uploaded using IIS. I want the users using the application would be able to select a file located on their (the user) computer and read its contents.</p>
  
  <p>The code is:</p>
  
  <pre><code>TextReader trs = new StreamReader(faFile.Value);
              DataAccessLayer.clearFA();
              string line = trs.ReadLine();
              // Read all unneeded data 
              while (line != "** Start Data **")
              {
                  line = trs.ReadLine();
              }
              line = trs.ReadLine();
              while (line != null)
              {
                  string[] words = line.Split('*');
                  // There is no message
                  if (words[4] == "")
                  {
                      DataAccessLayer.insertIntoFA(Int32.Parse(words[1]), words[3].Replace("'", ""));
                  }
                  else
                  {
                      DataAccessLayer.insertIntoFA(Int32.Parse(words[1]), words[4].Replace("'", ""));
                  }
                  line = trs.ReadLine();
              }         
          }
  </code></pre>
  
  <p>When I run it from my pc it works. But when I try to run it from the IIS it gives me the following error:</p>
  
  <pre><code>Could not find a part of the path 'C:\Documents and Settings\myUser\Desktop\file.txt'. 
  </code></pre>
  
  <p>I understand that the application cant read the file from the user pc. Any idea how can I make it work?</p>
  
  <p>Thanks!</p>
  
  <p>Greg</p>