title: System.Data.OleDb.OleDbException: Invalid path or file name
body: <p>i have the following code which has been getting me data from flat files. but now all of a sudden i am  getting this error</p>
  
  <pre><code>System.Data.OleDb.OleDbException: Invalid path or file name
  </code></pre>
  
  <p>but the code hasnt changed it worked for months,im not sure what went wrong.</p>
  
  <pre><code>System.Web.Script.Serialization.JavaScriptSerializer json = new System.Web.Script.Serialization.JavaScriptSerializer();
      string jsonText;
      System.Collections.Generic.List&lt;object&gt; objList = new List&lt;object&gt;();
      string strConn = @"Provider=vfpoledb;Data Source=\\10.0.0.0\wwwroot\apps\assembly\FlatDatabaseDbfs\vt_Flat.dbf;Collating Sequence=machine;";
  
      using (System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(strConn))
      {          
              System.Data.OleDb.OleDbCommand cmddbf = new System.Data.OleDb.OleDbCommand();
              cmddbf.Connection = conn;
  
              conn.Open();
  
          cmddbf.CommandText = "select * from vt_Flat";
  
          var dr = cmddbf.ExecuteReader();
  
          while (dr.Read())
          {
              objList.Add(new
              {
  
                  Code = (dr["dp_code"].ToString().Trim()),
  
              });
          };
  
      } 
  
      var filteredList = objList.Where(obj =&gt; ((dynamic)obj).Status == (Request.QueryString["Status"] ?? "") &amp;&amp; ((dynamic)obj).DepCode == (Request.QueryString["Code"] ?? ""));
  
      jsonText = json.Serialize(filteredList);
      Response.Write(jsonText);
  
  
  }
  </code></pre>
  
  <p>is there something wrong with iis permissions?</p>