我写了一个小的ASP.NETCore2应用程序。它作为服务运行,因此没有IIS。它在装有Windows7SP1的PC上运行。varhost=WebHost.CreateDefaultBuilder(args).UseContentRoot(pathToContentRoot).UseHttpSys(options=>{options.Authentication.Schemes=AuthenticationSchemes.None;options.Authentication.AllowAnonymous=true;options.MaxConnections=null;options