I\'ve set up a web site using an Owin self hosted console app. I\'m serving static files with no problem, the \'root\' of the static part of the site works properly, and th
Maybe it's a late answer, but if you need just a default document, less code will work:
builder.UseDefaultFiles(new DefaultFilesOptions
{
DefaultFileNames = Enumerable.Repeat("index.html", 1).ToList()
});
It should be called before builder.UseStaticFiles for whatever reason.
Version of Microsoft.Owin.StaticFiles is 3.0.1