For testing I'm running the Quartz.net scheduler as windows service under the same box, where my web-app (having embedded quartznet web console) is also hosted.
Problem description:
The windows service is started manually and runs fine with logging and adojobstore.
The web app has the following code to initialize the quartz.net web console to the quartz.net scheduler, and also runs fine without any exception:
NameValueCollection properties = new NameValueCollection();
properties["quartz.scheduler.instanceName"] = "SPDQuartzScheduler";
// set thread pool info
properties["quartz.threadPool.type"] = "Quartz.Simpl.SimpleThreadPool, Quartz";
properties["quartz.threadPool.threadCount"] = "10";
properties["quartz.threadPool.threadPriority"] = "Normal";
// set remoting expoter
properties["quartz.scheduler.proxy"] = "true";
properties["quartz.scheduler.proxy.address"] = "tcp://localhost:555/SPDQuartzScheduler";
// First we must get a reference to a scheduler
ISchedulerFactory sf = new StdSchedulerFactory(properties);
quartzScheduler = sf.GetScheduler();
//Assign webconsole to scheduler
QuartzNetWebConsole.Setup.Scheduler = () => quartzScheduler;
When we visit the ..\quartz\index.html page in the web app, the following exception is thrown:
Quartz.SchedulerException: Operation not supported for remote schedulers.
at Quartz.Impl.RemoteScheduler.get_ListenerManager()
at QuartzNetWebConsole.Utils.SchedulerWrapper.get_ListenerManager()
at QuartzNetWebConsole.Controllers.IndexController.Execute(HttpContextBase context, Func`1 getScheduler)
at QuartzNetWebConsole.ControllerFactory.<.ctor>b__6(HttpContextBase ctx)
at MiniMVC.HttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)