Azure / DotNetty

DotNetty project – a port of netty, event-driven asynchronous network application framework
Other
4.09k stars 977 forks source link

I/O Error exception when calling Bootstrap.BindAsync() #185

Closed romanovmv closed 7 years ago

romanovmv commented 7 years ago

I'm just trying to run QuoteOfTheMoment.Client example and get this exception. Any ideas?

nayato commented 7 years ago

@romanovmv what is the exception though?

romanovmv commented 7 years ago

@nayato I/O Error Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> DotNetty.Transport.Channels.ClosedChannelException: I/O error occurred. --- End of inner exception stack trace --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at DotNetty.Transport.Bootstrapping.AbstractBootstrap2.d26.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Dotnetty.Program.d0.MoveNext() in C:\Temp\Dotnetty\Dotnetty\Program.cs:line 33 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Dotnetty.Program.d__0.MoveNext() in C:\Temp\Dotnetty\Dotnetty\Program.cs:line 55 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at Dotnetty.Program.Main() in C:\Temp\Dotnetty\Dotnetty\Program.cs:line 58`

nayato commented 7 years ago

I've just fixed a couple of issues in QOTM sample, trying to cast to ISocketChannel namely, otherwise sample's are working fine for me at least. Let me know if this fixes your issue.

romanovmv commented 7 years ago

@nayato thank you, now it's working fine!