M220N Chapter 1 Ticket Connecting to Atlas

I’m having trouble getting the changes to the appsettings.json file to allow me to connect. I am using this in appsettings.json

{
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "AllowedHosts": "*",
  // TODO: Connection Pooling Ticket
  // modify the connection string to set the maximum connection pool size.
  "MongoUri": "mongodb+srv://m220:m220password@mflix.kmgzg.mongodb.net/mflix?retryWrites=true&w=majority",
  "JwtAuthentication": {
    "SecurityKey": "ouNtF8Xds1jE55/d+iVZ99u0f2U6lQ+AHdiPFwjVW3o=",
    "ValidAudience": "https://localhost:5000/",
    "ValidIssuer": "https://localhost:5000/"
  }
}

But when I run the test dotnet test --filter "Name=TestReturnsOneMovie" I get these errors:

Did you compile the solution?

Found my error in the code in another file and was able to fix. Thanks!

Hi @shelbs , can you please post the cause of this issue and the solution that fixed the same, it would be really helpful for other learners that might find themselves in the same place in the future.

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer