Closed SlyNet closed 10 years ago
This is expected. You cannot perform syncronous query on IAsyncDocumentSession
which this library only supports. You should perform all queries to RavenDB async anyway.
Use the provided async extension methods such as ToListAsync()
, FirstOrDefaultAsync()
, etc.
@tugberkugurlu This is a really old question but I think it still applies. Your answer is super vague and confusing, can you elaborate?
You say the library only supports sync query but that we should always perform async. How am I supposed to do this if there's only a sync query? You said to use ToListAsync()
but I'm getting the same error. Could you provide a small example of what you mean? Thanks!
When executing any query on UserManager.Users against RavenDB that is hosted as separate service System.NotSupportedException is thrown.