title: download unknown file from Url
body: <p>In my application I need to download a .fec file from an Url and save it to another location.
  I am using the C# Web Client for this. 
  But when I try to download a .fec file(we cannot view this file in IE or FF) Its downloading 
  404 page not found file and saving it to myfolder.
  I dont know why its downloading a 404 page not found file when the file is existing at specified location.
   Is this because .Fec files require a separate program to view it(you need Fec Viewer in order to view .fec files).
  If I download a .txt file or .pdf file my program is working fine. I am able to download the 
  file and save it to my folder.</p>
  
  <p>Any help is appreciated.
  Here is my code</p>
  
  <pre><code> public void downloadFile(string url, string saveas)
          {
              try
              {
                  System.Net.WebClient webclient = new System.Net.WebClient();
                  webclient.DownloadFile(url, saveas);
              }
              catch (Exception e)
              {
                  this.ErrorLog(e.Message.ToString());
              }
  
          }
  </code></pre>