Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hi, I need to get the Active Directory Users, group and etc lists and form reports.
Initially i have used the timer control to do this job. But if the application is idle for some time(say one day) then the pool is dying. My application ending up without getting the data from Active Directory unless someone browses the application. To address this i am trying to use the Quartz.Net scheduler. I have installed the Quartz in my system as a windows service. And i am trying to run a simple job which hits and inserts the TimeStamp into the DataBase at regular intervals forever. But i am getting the following error. I have attached the code. Click here. Any help would be appreciated greatly.

C#
Could not load file or assembly 'QuartzBasicApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Any help would be appreciated greatly!!
Posted
Comments
[no name] 5-Oct-14 12:11pm    
The error message is clearly telling you that you are missing a file or a file dependency somewhere.
SaiKiran.Mandhala 6-Oct-14 0:13am    
QuartzBasicApp is my solution name. I dont think that i should add my assembly to my own solution which is same solution.
[no name] 6-Oct-14 7:02am    
Well I don't think you should either since that has nothing at all to do with your problem.
Swinkaran 5-Oct-14 22:16pm    
Have you set the dependency settings correctly?
If you have more than a single projects in you solutions, you need to check the order of build
SaiKiran.Mandhala 6-Oct-14 0:12am    
There is only one project in my solution. Request you to please see the attached code first.

1 solution

It started working after making my assembly as a shared assembly. Now i could able to use quartz services and i am able to schedule jobs. Now my application is not dependent on application pool i.e., even if i stop app pool and my web site....still the jobs are triggering at fixed regular intervals. Thanks everyone.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900