title: Using Quartz.Net embedded into a Windows Service
body: <p>I Am trying to use Quartz.Net so as to Schedule Jobs Within a Windows Service that I developped.</p>
  
  <p>I included the following code on the <i>Onstart</i> Method, <i>scheduler</i> is a Class attribute 
  <code>private readonly IScheduler scheduler;</code></p>
  
  <p><code>
  logger = LogManager.GetLogger(typeof (TelegestionService));<br />
  scheduler = new StdSchedulerFactory().GetScheduler();<br />
  var job = new JobDetail("job1", "group1", typeof (HelloJob));<br />
  var trigger = new SimpleTrigger("trigger1", "group1", runTime);<br />
  scheduler.ScheduleJob(job, trigger);
  </code></p>
  
  <p>This works fine for me. I got the Job running.</p>
  
  <p>Now I'am trying to make the scheduler embedded remotely accessible, based en Example12 in the Quartz source Examples (the Console Server/Client works fine).</p>
  
  <p><code>
  var properties = new NameValueCollection();<br />
  properties["quartz.scheduler.instanceName"] = "RemoteServer";<br />
  properties["quartz.threadPool.type"] = "Quartz.Simpl.SimpleThreadPool, Quartz";<br />
  properties["quartz.threadPool.threadCount"] = "5";<br />
  properties["quartz.threadPool.threadPriority"] = "Normal";<br />
  properties["quartz.scheduler.exporter.type"] = "Quartz.Simpl.RemotingSchedulerExporter, Quartz";<br />
  properties["quartz.scheduler.exporter.port"] = "555";<br />
  properties["quartz.scheduler.exporter.bindName"] = "QuartzScheduler";<br />
  properties["quartz.scheduler.exporter.channelType"] = "tcp";<br /><br />
  scheduler = new StdSchedulerFactory(properties).GetScheduler();<br />
  </code></p>
  
  <p>The service starts correctly and so does the scheduler but i cannot remotely schedule the Job using a Console/Winform Client (Connection refused).</p>
  
  <p>I checked the LISTENING ports on my server using SysInternals TcpView and I cannot find the 555 port specified above. </p>
  
  <p>Am suspecting an issue related to .Net Remoting but cannot figure out how to resolve this.
  Any ideas ?</p>
  
  <p>Thanks in advance.</p>