Oh if it's ASP.NET Core, GleamTech gets the application directory from environment variable ASPNETCORE_APPL_PATH which should be set by ASP.NET Core module. If it's empty, / is used. Strange that it's empty in your case, maybe you didn't have proper ASP.NET Core server installation?
Open Program.cs and try adding the highlighted line:
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
Environment.SetEnvironmentVariable("ASPNETCORE_APPL_PATH", webBuilder.GetSetting("APPL_PATH"));
webBuilder.UseStartup<Startup>();
});
If it still doesn't work, open Startup.cs and add the highlighted line before UseGleamTech call (hardcode the app path /iSystem):
Environment.SetEnvironmentVariable("ASPNETCORE_APPL_PATH", "/iSystem");
app.UseGleamTech();