1
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

 

7 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
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.
0
Cem Alacayir Replied
Employee Post Marked As Resolution
FYI, this is now fixed with FileUltimate Version 7.7.0 - September 15, 2020:

  - Fixed: In some cases, on ASP.NET Core, resources like js and css were not loading (HTTP 404).
    Fixed UseGleamTech and WebActivationMiddleware to find correct ApplicationVirtualPath:
    ASPNETCORE_APPL_PATH environment variable is only present if you are using the OutOfProcess hosting model. If you are using InProcess, the information is only present on the HttpRequest.PathBase property.


0
Mantas Audickas Replied
Maybe Gleamtech component should be able to respect application gateway headers like X-Forwarded-Path ?
Would make life way easier when application actually runs without path, but its exposed to outside world using some path.

Reply to Thread