I've managed to get Katana/OWIN running on Mono using the HttpListener host.
I'm now experimenting with Microsoft.Owin.Host.SystemWeb
on Mono and XSP4. I'm using the code found in the this repo. It has a Startup
class:
using Owin;
namespace KatanaSystemWebTest
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseDiagnosticsPage();
}
}
}
In web.config, we define the Configuration()
method as that one that starts the app:
<appSettings>
<add key="owin:AppStartup" value="KatanaSystemWebTest.Startup.Configuration, KatanaSystemWebTest" />
<add key="owin:AutomaticAppStartup" value="true" />
<add key="webpages:Enabled" value="false" />
</appSettings>
This works great when debugging in Visual Studio, but not on Mono. I'm guessing it's some sort of assembly-loading hook that doesn't get fired. Any suggestions?
Here's an app running the code: http://peaceful-forest-6785.herokuapp.com/