title: How do I connect to SQLite db file from c#?
body: <p>I am trying to connect to a sqllite db from with a c# application. I have never worked with SQLLite before.</p>
  
  <pre><code>var connectionString = @"data source='C:\TestData\StressData.s3db'";
              connection = new SQLiteConnection(connectionString);
              connection.Open();
  </code></pre>
  
  <p>When i attempt to open the connection I get the following exception:</p>
  
  <pre><code>System.NotSupportedException: The given path's format is not supported.
     at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
     at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks..</p>
  
  <p>Nick</p>
  
  <p>Update:</p>
  
  <p>I changed 'data source' to 'DataSource' as suggested to me. Now I receive a new error:</p>
  
  <p>After changing this I get a new error: System.ArgumentException: Data Source cannot be empty. Use :memory: to open an in-memory database at System.Data.SQLite.SQLiteConnection.Open()</p>
  
  <p>Any more suggestions?</p>