Skip to content
Loading
  • 0
    What exactly does not work?
     
    Do you get any exceptions? 
    0
  • 0
    no exceptions, no results.
     
    It's like not calling any methods. I just get the default page on browser.
    0
  • 0
    What if you define IScheduler as a class property, instead of defining it in local scope?
    0
  • 0
    I tried that, still the same I get no results.
     
    I tried running the JobScheduler.Start() on Default.aspx Load property and I get prompted a visual studio windows to Find source: RAMJobStore.cs
     
    Any ideas?
    0
  • 0
    Did you add Common.Logging ?
     
     install-package common.logging
    0
  • 0
    It's already installed.
    0
  • 0
    I made your Start() non static, made IScheduler a property.
     
    Added a JobScheduler property to the Global class, instantiated it, and called start. Execute was called as expected.
    0
  • 0
    If it's not too much trouble can you paste the changes, to see what I'm doing wrong?
     
     Thank you.
    0
  • 0
    Thank you, I still can't get the report exported to the folder but the problem is not with the scheduler.
     
    I tried write into a text files and the code works.
    0
  • 0
    Please do not using System.Web.HttpContext.Current.Server.MapPath
    Change to this and try again:
    System.Web.Hosting.HostingEnvironment.MapPath 
    0