I have a owin middle ware it works on my IIS7 on my dev machine (win7). But when deployed to a 2008 server the page returns 404
I hook up the middleware like this
A few common reasons for a OWIN middleware not working as expected in IIS integrated pipeline.
This article can be of help. Also this question I believe is similar to yours.