Closed fean closed 8 years ago
I'm having the exact same problem with the NuGet package.
I was investigating the cause of a problem I have with my C#/Web project, decided to update Griffin.WebServer and now the application doesn't even start. I'm getting the same error as the OP and I installed the package through NuGet as well.
After applying a general update to all my installed packages through NuGet, the problem seems to have been fixed.
Published a new package with has Griffin.Framework as dependency instead of Griffin.Networking. Should take care of all issues.
First of all thanks for all your work on this nicely written library!
Well, I'm trying to use your
HttpServer
class to serve a stream to a local device. Because the .NetHttpListener
class needs elevated rights to run on any specific URL I quickly started looking at alternatives. So that's when I found your implementation.I implemented
IWorkerModule
to handle the requests the way I need. Added it to aModuleManager
and added that to an instance ofHttpServer
. But the moment I callStart()
thisSystem.TypeLoadException
is thrown:For reference here is my
startListening()
method:Here is my implementation of the
IWorkerModule
also:It's probably just something I forgot or misinterpreted from your DemoServer. Oh, I almost forgot, I'm using the NuGet package for
Griffin.WebServer
.