Mongo BD timeout with Aspnetcore hosted on the smarterasp server

Asked

Viewed 31 times

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.

1 answer

0

After contacting the support team at https://www.smarterasp.net/, I was informed that to make the connection with any other database server it is necessary to sign a monthly package.

Thank you to everyone who somehow tried to help me.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.