<appSettings> <add key="owin:AutomaticAppStartup" value="false" /> <add key="owin:appStartup" value="MyNamespace.MyStartupClass" /> </appSettings>