sebastienros / yessql

A .NET document database working on any RDBMS
MIT License
1.2k stars 196 forks source link

Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. #402

Open craftyweb opened 3 years ago

craftyweb commented 3 years ago

Hello,

I've got the following error while executing a query in Orchard Core.

image

I think it has something to do with the fact that I call it a few times in a short period.

image

We did the same in Orchard 1 but then we had another line in the method.

image

Can someone explain what the error exactly means and if there is a solution for this.

Thanks in advance!

deanmarcussen commented 3 years ago

Make it async. you are calling .Result on an async method, which is causing your issues.

await all your calls to ISession

craftyweb commented 3 years ago

Make it async. you are calling .Result on an async method, which is causing your issues.

await all your calls to ISession

Thanks! I will give it a try