title: How can I connect my .Net backend to a SQL Server database. Currently getting 204: No Content Errors
body: <p>I'm taking over a project that uses Angular in the front and .net and SQL Server in the backend. I recently graduated from a bootcamp, but we learned node. The old dev, switched from an express backend to .net before he left. Now, the project is mine and I'm completely lost.  </p>
  
  <p>Every tutorial/website that I've searched so far references a web.config type file, but this project uses a <code>ConfigHelper.cs</code>. The local database has data in it and the addresses are correct. So, I'm not sure why it's not working.</p>
  
  <p>I'm not sure what to google or what to else to look for in the code so I can trouble shoot my issue. So, I'm hoping that this question could at least point me in the right direction</p>
  
  <p>ConfigHeler.cs:</p>
  
  <pre><code>namespace WebSiteREST.Utilities
  {
      public class ConfigHelper
      {
          private static string defaultConnection = @"Data Source=DESKTOP\SQLEXPRESS;Initial Catalog=CTDB2;Integrated Security=True";
          //public static string defaultConnection { get; set; }
          internal static string DefaultConnection { get { return defaultConnection; } }
      }
  } 
  </code></pre>
  
  <p>This is the error I get in my devtools window:</p>
  
  <p><a href="https://imgur.com/a/8EmdJCs" rel="nofollow noreferrer">https://imgur.com/a/8EmdJCs</a></p>
  
  <p>I can't post images, but it says:</p>
  
  <blockquote>
    <p>Error 204 (no content) - Options -  GetVehicle?start=0&amp;results=200 - localhost:27985<br>
    Error 400 (bad request) - GET -  GetVehicle?start=0&amp;results=200 - localhost:27985</p>
  </blockquote>
  
  <p><code>launchSettings.json</code> (just in case you need it. I'm using the CTRest option):</p>
  
  <pre><code>{
    "iisSettings": {
      "windowsAuthentication": false,
      "anonymousAuthentication": true,
      "iisExpress": {
        "applicationUrl": "http://localhost:27984/",
        "sslPort": 0
      }
    },
    "profiles": {
      "IIS Express": {
        "commandName": "IISExpress",
        "launchBrowser": true,
        "launchUrl": "api/values",
        "environmentVariables": {
          "ASPNETCORE_ENVIRONMENT": "Development"
        }
      },
      "CTREST": {
        "commandName": "Project",
        "launchBrowser": true,
        "launchUrl": "api/values",
        "environmentVariables": {
          "ASPNETCORE_ENVIRONMENT": "Development"
        },
        "applicationUrl": "http://localhost:27985/"
      }
    }
  }
  </code></pre>