AspNetCore.Diagnostics.HealthChecks icon indicating copy to clipboard operation
AspNetCore.Diagnostics.HealthChecks copied to clipboard

ui files not found

Open diegoschagas opened this issue 3 years ago • 2 comments

hi everyone,

i have an web api with healthcheck.ui (5.0.1) monitoring. this web api works fine in localhost. when i publish (windows server), healcheck UI doesnt works fine. the resourse js works, but the interface not works. i think than seams not found some´s js and css files C# peace of code endpoints.MapHealthChecksUI(options => { options.UIPath = "/api/hc-ui"; options.ResourcesPath = "/ui/resources";

                options.UseRelativeApiPath = false;
                options.UseRelativeResourcesPath = false;
                options.UseRelativeWebhookPath = false;
            });

--->>>>> ERROR UI ui/resources/vendors-dll.js net::ERR_ABORTED 404 (Not Found) ui/resources/healthchecksui-min.css 404 (Not Found) ui/resources/healthchecks-bundle.js net::ERR_ABORTED 404 (Not Found) ui/resources/vendors-dll.js net::ERR_ABORTED 404 (Not Found) ui/resources/healthchecks-bundle.js net::ERR_ABORTED 404 (Not Found)

diegoschagas avatar Jun 30 '21 20:06 diegoschagas

I have a similar issue, I am trying to use a logo that is stored locally, but I also get a 404 error. Can someone advise either what path I should use, or which settings control the location of required ui files.

MarkLFT avatar Dec 03 '21 03:12 MarkLFT

Same issue for me :( The file ui/resources/vendors-dll.js is not generated, and return an error 404.

I'm using the version 6.0.4.

healthchecks-bundle.js and healthchecksui-min.css are generated.

vdekercd avatar Jul 11 '22 09:07 vdekercd

Same. This is still an issue. How can I reference a local image, from the code?

Tdue21 avatar Aug 21 '23 11:08 Tdue21