Fileultimate With Application Under IIS
Problem reported by Amr Alsawy - 6/2/2020 at 4:28 AM
In my iis i create application nuder my subdomain the application name is iSystem
when i call the page contain Fileultimate i found path not true
 the path must be 

then the i found white page


5 Replies

Reply to Thread
Cem Alacayir Replied
Employee Post
In IIS, you need to right-click iSystem and click Convert to Application option (it should not be only a virtual directory).

Also are you sure FileUltimate is used in /iSystem and not the root site /?
Amr Alsawy Replied
iSystem  in iis is already application not virtual directory  and i am sure FileUltimate   is in isystem not in the root
and in my local it work good in my online server not work
i'm using core 3.1
my local iis version 10
my server iis version 8.5

Cem Alacayir Replied
Employee Post Marked As Resolution
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) =>
        .ConfigureWebHostDefaults(webBuilder =>
            Environment.SetEnvironmentVariable("ASPNETCORE_APPL_PATH", webBuilder.GetSetting("APPL_PATH"));

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");


Amr Alsawy Replied
Thank you very much it work now

"maybe you didn't have proper ASP.NET Core server installation? "
 i install runtime-aspnetcore-3.1.4-windows-hosting-bundle-installer
any thing else i need when installation
Cem Alacayir Replied
Employee Post
No, that's the only thing you need to install. Maybe with 3.1, they changed the environment variable I will recheck.

Reply to Thread