Griffin.WebServer icon indicating copy to clipboard operation
Griffin.WebServer copied to clipboard

Exception when stopping WebServer

Open philjpearson opened this issue 9 years ago • 3 comments

When you stop an instance of HttpServer an exception is thrown on another thread:

Message: An unhandled exception of type 'System.ObjectDisposedException' occurred in System.dll
Additional information: Cannot access a disposed object.
Griffin.Core.dll!Griffin.Net.ChannelTcpListener.OnAcceptSocket(System.IAsyncResult ar) Line 213 C#

philjpearson avatar Jul 21 '15 19:07 philjpearson

Are you using the version from nuget, or a version compiled from the latest version of this repo?

PhonicUK avatar Jul 27 '15 21:07 PhonicUK

I am using Version 0.5.1.0 from NuGet.

philjpearson avatar Jul 28 '15 10:07 philjpearson

Try building the latest version from the repo (building Griffin.Framework too). One of the fixes I wrote a while ago should fix this problem as well.

PhonicUK avatar Jul 29 '15 13:07 PhonicUK