title: Could not find file ...client_secrets.json
body: <p>I am using the VersionOne SDK to write test results to an asset. However, I keep getting an exception on the first line inside this method. </p>
  
  <pre><code>Caught: "Could not find file 'C:\Users\solution\bin\Debug\client_secrets.json'." (System.IO.FileNotFoundException)  Exception Message = "Could not find file 'C:\\Users\\solution\\bin\\Debug\\client_secrets.json'.", Exception Type = "System.IO.FileNotFoundException", Exception WinRT Data = null  
  </code></pre>
  
  <p>Obviously it looks like the path is not using the <code>@</code> symbol so the path has two slashes in it. How can I find where it is getting this path from?</p>
  
  <pre><code>class V1Tools
  {
  
      public string TestRequest { get; set; }  
      internal EnvironmentContext Context;
      private readonly CLogger _logger;
  
  
      public V1Tools(ref DataObject masterData)
      {
          _logger = masterData.Logger;
          Context = new EnvironmentContext();
      }
  
      public IV1Configuration GetV1Configuration()
      {
          return Context.V1Configuration;
      }
  
  
      public void UpdateTestResults(string strTestId, string strActualResult)
      {
          var testId = Oid.FromToken(strTestId, Context.MetaModel);
          var query = new Query(testId);
          var assetType = Context.MetaModel.GetAssetType("Test");
          var addResults = assetType.GetAttributeDefinition("ActualResults");
  
          query.Selection.Add(addResults);
          var result = Context.Services.Retrieve(query);
          var test = result.Assets[0];
          var oldResult = GetValue(test.GetAttribute(addResults).Value);
  
          var time = DateTime.Now;
          const string format = "MMM ddd d HH:mm yyyy";
          test.SetAttributeValue(addResults, "&lt;p&gt;" + "\n" + oldResult + time.ToString(format) + "--&gt;" + strActualResult + "&lt;/p&gt;");
          Context.Services.Save(test);
  
          _logger.Log(Loglevel.Debug, test.Oid.Token, oldResult, GetValue(test.GetAttribute(addResults).Value));
  
      }
  </code></pre>
  
  <p>I'm using the following in the App.config file to set the username and password:</p>
  
  <pre><code>&lt;appSettings&gt;
  &lt;add key="DebugFileName" value="C:\VersionOneAPIClientDebug.txt" /&gt;
  &lt;add key="V1Url" value="https://www12.v1host.com/myVersionOneAccount/" /&gt;
  &lt;add key="V1UserName" value="myUserName" /&gt;
  &lt;add key="V1Password" value="myPassWord" /&gt;
  &lt;add key="UseWindowsIntegratedAuth" value="false" /&gt;
  &lt;add key="ClientSettingsProvider.ServiceUri" value="" /&gt;
  </code></pre>
  
  <p>
    
      
        
          
          
        
      
    </p>