Skip to content

Unable to Login to Ase server #214

@no1ross

Description

@no1ross

Hi,

We are trying to just create a connection to our internal Ase system. We are using 16, with the latest driver. One thing we did notice below is that the actual 'No login ack found' is being hidden, the only way we found this was by turning on the logging by using the following line:
AdoNetCore.AseClient.Internal.Logger.Enable(true, true, true);
When debugging through our service code, all we saw was 'Timed out trying to establish a connection'. I ended up cloning this and debugging the code to figure out that it looks like our Ase setup returns and unexpected token, or a token is missing.

Please help me understand why this could be happening.

[2021-06-17 17:56:42] ---------- Send packet ----------
[2021-06-17 17:56:42] Write TDS_BUF_LOGIN
[2021-06-17 17:56:42] Write TDS_CAPABILITY

[2021-06-17 17:56:53] ---------- Receive Tokens ----------
[2021-06-17 17:56:53] <- TDS_DONE_FINAL, TDS_NOT_IN_TRAN, 0
Exception thrown: 'System.InvalidOperationException' in AdoNetCore.AseClient.dll
'iisexpress.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.15\System.IO.MemoryMappedFiles.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
[2021-06-17 17:56:53] InternalConnectionFactory.GetNewConnection encountered exception: System.InvalidOperationException: No login ack found
at AdoNetCore.AseClient.Internal.InternalConnection.Login() in C:\GitLab\ESS\framework\AdoNetCore.AseClient\Internal\InternalConnection.cs:line 199
at AdoNetCore.AseClient.Internal.InternalConnectionFactory.GetNewConnection(CancellationToken token, IInfoMessageEventNotifier eventNotifier) in C:\GitLab\ESS\framework\AdoNetCore.AseClient\Internal\InternalConnectionFactory.cs:line 54
Exception thrown: 'System.OperationCanceledException' in AdoNetCore.AseClient.dll
Exception thrown: 'AdoNetCore.AseClient.AseException' in AdoNetCore.AseClient.dll
Exception thrown: 'AdoNetCore.AseClient.AseException' in AdoNetCore.AseClient.dll
An exception of type 'AdoNetCore.AseClient.AseException' occurred in AdoNetCore.AseClient.dll but was not handled in user code
Timed out trying to establish a connection

Thanks,
Andrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions