jlucansky / Quartzmin

Quartzmin is powerful, easy to use web management tool for Quartz.NET
MIT License
548 stars 180 forks source link

Quartzmin in virtual directory #22

Open eflorespalma opened 4 years ago

eflorespalma commented 4 years ago

When I publish the web without virtual directory http://PUBLIC_IP it works great, but when I publish something like this http://PUBLIC_IP/manager, I got problems with css and javascript from Quartzmin library.

GET http://localhost:63803/Content/Lib/semantic-ui/semantic.min.css net::ERR_ABORTED 500 (Internal Server Error)
manager:21 GET http://localhost:63803/Content/Lib/semantic-ui/calendar.min.css net::ERR_ABORTED 500 (Internal Server Error)
manager:22 GET http://localhost:63803/Content/Fonts/Lato.css net::ERR_ABORTED 500 (Internal Server Error)
manager:23 GET http://localhost:63803/Content/Site.css net::ERR_ABORTED 500 (Internal Server Error)
manager:25 GET http://localhost:63803/Content/Lib/jquery-3.3.1.min.js net::ERR_ABORTED 500 (Internal Server Error)
manager:26 GET http://localhost:63803/Content/Lib/moment.min.js net::ERR_ABORTED 500 (Internal Server Error)
hugovlc commented 4 years ago

Me too

devigo commented 4 years ago

@eflorespalma @hugovlc You can try to fix VirtualPathRoot from QuartzminOptions

app.UseQuartzmin(new QuartzminOptions()
{
    Scheduler = StdSchedulerFactory.GetDefaultScheduler().Result,
    VirtualPathRoot = "/quartz",
});
maikebing commented 4 years ago

Fix for Asp.Net Core 3.1 and fixe for VirtualPathRoot
https://github.com/jlucansky/Quartzmin/pull/27