title: The type initializer for 'ClosedXML.Excel.XLWorkbook' threw an exception
body: <pre><code>using ClosedXML.Excel;
  
  class XLSXWriter : BExporter
      {
          private readonly string _fName;
  
          public XLSXWriter(string fileName)
          {
              _fName = fileName;
          }
  
          public override void Export(IEnumerable&lt;AnimalData&gt; animals)
          {
              var workBook = new XLWorkbook(); &lt;---Throws an exception
  
              var workSheet = workBook.Worksheets.Add("MySheet");
  
              workSheet.Cell("A1").Value = "Hello World";            
  
              FileStream fs = new FileStream(_fName, FileMode.Create);
              workBook.SaveAs(fs);
              fs.Close();          
          }
      }
  </code></pre>
  
  <p>Just trying this library <code>ClosedXML.dll</code>, and it throws an exception can't figure out what could be the problem.
  I get the <code>_fName</code> from the <code>savefiledialog</code>.
  Ideas anybody?</p>