Can not find the specified object with X509Certificate2
<p>I'm trying to load a file that contains the secret key to access to <code>Google Calendar API</code>. <a href="http://www.daimto.com/google-calendar-api-authentication-with-c/" rel="noreferrer">Following this tutorial.</a>
For doing this I've created this code:</p>

<pre><code>var certificate = new X509Certificate2("client_secret.json", "notasecret", X509KeyStorageFlags.Exportable);
</code></pre>

<p>I've uploaded <code>client_secret.json</code> file inside my solution, this is the path of the file: <code>"...\Visual Studio 2015\Projects\Calendar\Calendar\bin\Debug\client_secret.json"</code></p>

<p>but seems that the code can't locate the file and return this error:</p>

<blockquote>
  <p>Can not find the specified object with X509Certificate2</p>
</blockquote>

<p>I also set the property <code>Always copy</code> on <code>Copy in the output directory</code> on the file to read.</p>