TypeInitializationException in my singleton. How can I fix it?
<p>I have a singleton and when I call it from my UnitTest I get </p>

<p>"System.TypeInitializationException was unhandled by user code
  Message=The type initializer for 'mycompany.class'threw an exception"</p>

<pre><code>public sealed class MySingleton
{

  private static  MySingleton instance = new MySingleton();

  private MySingleton()
  {
    ConnectionString = GetConnectionstring();
  }

  public static MySingleton NewConnectivity
  {
    get { return instance ?? (instance = new MySingleton()); }
  }

  public string ConnectionString { get; set; }

  private static string GetConnectionstring()
  {
    return "bla";
  }
}
</code></pre>
