Not sure what could cause this on an output file. File is created globally here:
    static string dt = DateTime.Today.ToString("MMddyyyy");
    static string filename = "CBI_" + dt + "_providers.json";
    static string filepath = Convert.ToString(ConfigurationManager.AppSettings["Outpath"]);
    System.IO.TextWriter writeFile = new StreamWriter(filepath + filename);
and written to here:
 writeFile.WriteLine(JsonConvert.SerializeObject(ListALL));
This works fine from my local machine but throws the exception on our application server, even after creating this file in specified path and with specified name but with 0 bytes.
