Results 2 comments of Michael Cessna

@tareq2 Is the DateTime value passed to ComputeTotp in UTC format? It should be a UTC DateTime value.

We encountered the same Exception using Any(): The query: return session.Query() .Any(integration => integration.Id == id && (bool) integration.Enabled); The SQL: SELECT TOP 1 >snip< from INTEGRATION integratio0_ where integratio0_.INTEGRATIONID='ICRMION00001'...