Unable to connect to MongoDB database, "The connection string *** is not valid"

I am currently trying to make a test application that simply establishes a connection to MongoDB database and outputs a table value.

I followed along this video: https://www.youtube.com/watch?v=QSO4vIePxqs&ab_channel=OutSystems

When attempting to access the webpage to see if a connection was made to my MongoDB database, the page returns this error. I have replaced the designated fields with the correct password and database name correlating with MongoDB. I also tried using the included full driver code  connection string example and came up with the same result.  Any advice or guidance would be highly appreciated. Thank you.


Dear Sam

Here is Step by Step Process may help you in Detailed Way. 


You need to remove < and > around the password . But I'm getting Connection time out error .

Hello I've done all the steps and keep the same error described above. Can you help me?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.