Fileultimate With Application Under IIS
Problem reported by Amr Alsawy - 6/2/2020 at 4:28 AM
Resolved
Hi,
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
0
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 /?
0
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 asp.net core 3.1
my local iis version 10
my server iis version 8.5

1
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) =>
    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();

0
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
0
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