Error when submitting lab from Instuqt IDE

Hello Mongo Community. This is my first post here because I am STUCK. I’m trying to complete the lab for LESSON 2: INSERTING A DOCUMENT IN C# APPLICATIONS in the ‘MongoDB CRUD operations in C#’ course.

I know I have the code correct. I ended up looking at the hints to confirm. When I test the solution I receive the following error:

Incorrect solution 1/1
The document were not found in the database. Please try again

Seems like there must be a cluster connection issue? Do I need to whitelist my IP address?

Thank you for the help.

No need of whitelist of IP if you are using IDE
Did your insert succed?
You can check from shell the record you inserted

Still no luck. The code only needs one line added to be correct.

The instructions say: Before you begin, please note that you are now connected to an Atlas cluster.

Which cluster? What is the connection string to check (CLI or Atlas) if the record was inserted?

Still getting this error:

1 ATTEMPTS
Incorrect solution 1/1
The document were not found in the database. Please try again

I found the problem. It ended up being ID-10-T error. I missed the step of running dotnet in the CLI. Thank you for the help.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.