Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A .NET library to develop Mongrel2 handlers.
C# Makefile
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.nuget Enable nuget package restore.
m2net AspNetHandler Make all projects x64.
m2net HandlerTest
m2net Tests
m2net.Asp Make all projects x64.
m2net Enable nuget package restore.
Local.testsettings Now parses using bytes rather than characters, so parsing should be m…
Makefile Updated linux Makefile.
m2net.vsmdi Inital tnetstrings implementation.


m2net, a .NET library to develop Mongrel2 handlers

m2net helps you develop Mongrel2 handlers. It also comes with a rough port of the Cassini ASP.NET web server to use m2net instead of sockets.


The libary is available on Nuget.



m2net is licensed under the 3-clause BSD License. m2net.asp is licensed under the Microsoft Public License, since it is derived from Cassini.

Currently limitations

  • Only works with x64 .NET apps on Windows. This should be improved in the next release.

Areas for improvement

  • Inject m2net.Asp.dll into ASP.NET on Mono so that it does not have to be in the GAC.
  • A better Linux build experiance, perhaps such that the Linux build can be based on the VS solution and project files.
  • Document how to use m2net and the ASP.NET handler.
  • See if the recieve socket also does not like multiple threads using it and added a recieve queue if needed.
  • Complile a 64-bit version of the ZMQ native library and use it with clrzmq to allow for 64-bit handlers on Windows.
  • Make the Cassini port more correctly implement the overrides of SimpleWorkerRequest.
Something went wrong with that request. Please try again.