So I've been on this for the past 2 days now and I just can't wrap my head around it:
I've created a database on mongodb aswell as a Web Api
using the Asp.Net
visual studio template.
The Api works fast locally and gives me the correct responses, but when deployed to azure I always get
System.TimeoutException: A timeout occurred after 30000ms selecting a server using CompositeServerSelector
I've made a pastebin which shows the whole error
So far I've tried:
return "Test string"
which works but as soon as I try to bring mongo into this it times out. Even if I'm just trying to name the database.
return _mongoclient.GetDatabase("MyDatabase").ToString()