Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Login to Ase server #214

Open
no1ross opened this issue Jun 17, 2021 · 0 comments
Open

Unable to Login to Ase server #214

no1ross opened this issue Jun 17, 2021 · 0 comments

Comments

@no1ross
Copy link

no1ross commented Jun 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant