@@ -2270,7 +2270,7 @@ private static async Task<Process> StartProcess(string hostname, string benchmar
2270
2270
{
2271
2271
Log . WriteLine ( $ "Generating application host config for '{ executable } { commandLine } '") ;
2272
2272
2273
- var apphost = GenerateApplicationHostConfig ( job , "published" , executable , commandLine , hostname ) ;
2273
+ var apphost = GenerateApplicationHostConfig ( job , job . BasePath , executable , commandLine , hostname ) ;
2274
2274
commandLine = $ "-h \" { apphost } \" ";
2275
2275
executable = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . Windows ) , @"System32\inetsrv\w3wp.exe" ) ;
2276
2276
}
@@ -2589,7 +2589,7 @@ private static void MarkAsRunning(string hostname, ServerJob job, Stopwatch stop
2589
2589
}
2590
2590
}
2591
2591
2592
- private static string GenerateApplicationHostConfig ( ServerJob job , string benchmarksBin , string executable , string arguments ,
2592
+ private static string GenerateApplicationHostConfig ( ServerJob job , string publishedFolder , string executable , string arguments ,
2593
2593
string hostname )
2594
2594
{
2595
2595
void SetAttribute ( XDocument doc , string path , string name , string value )
@@ -2609,7 +2609,7 @@ void SetAttribute(XDocument doc, string path, string name, string value)
2609
2609
SetAttribute ( applicationHostConfig , "/configuration/system.webServer/aspNetCore" , "processPath" , executable ) ;
2610
2610
SetAttribute ( applicationHostConfig , "/configuration/system.webServer/aspNetCore" , "arguments" , arguments ) ;
2611
2611
2612
- var ancmPath = Path . Combine ( job . BasePath , benchmarksBin , "x64\\ aspnetcorev2.dll" ) ;
2612
+ var ancmPath = Path . Combine ( publishedFolder , "x64\\ aspnetcorev2.dll" ) ;
2613
2613
SetAttribute ( applicationHostConfig , "/configuration/system.webServer/globalModules/add[@name='AspNetCoreModuleV2']" , "image" , ancmPath ) ;
2614
2614
2615
2615
SetAttribute ( applicationHostConfig , "/configuration/system.applicationHost/sites/site/bindings/binding" , "bindingInformation" , $ "*:{ job . Port } :") ;
0 commit comments