1
I have a web api on Asp Net Core performing reading on a non-relational basis on Mongo DB.
Running the application locally with the connection pointed to the Atlas Mongo DB server works perfectly, but when climbing the application to the server https://www.smarterasp.net/, is presented timeout error:
" A timeout occured after 30000ms Selecting a server using Compositeserverselector{ Selectors = Mongodb.Driver.Mongoclient+Aresessionssupportedserverselector, Latencylimitingserverselector{ Allowedlatencyrange = 00:00:00.0150000 } }......"
The Asp Net Core server version is ASP.NET 2.x, Integrated.
The Connection string recommended by Mongo DB Atlas is for the version C# . NET 2.11 or higher.
This error occurs when the connection cannot be made within 30 seconds. The most common is that it is a configuration error. Check to see if your server has atlas connectivity (firewall on both sides), as well as the address, user and password settings that are in the server-published app, as some posting procedure may have changed.
– tvdias