开发者

Quartz.NET RemoteScheduler with AdoJobStore unable to find assembly

HI All,

I have successfully created a Quartz.NET remote server running inside a windows service. I followed examples 12 in the source and slightly modified it to use AdoJobStore with sqlite.

On remote client I created a windows form application and successfully connected with the server. Everything went fine until the point where I'm trying to actually add jobs.

        JobDetail detail = new JobDetail(job.JobName, "default", typeof(NativeJob));
        detail.Description = job.Description;            
        JobDataMap map = new JobDataMap();
        map.Put(NativeJob.PropertyCommand, job.Command);
        map.Put(NativeJob.PropertyParameters, job.Arguments);            
        detail.JobDataMap = map;

        // create trigger
        Trigger trigger = new CronTrigger(job.JobName, "default", job.CronExpression);

        //Add job w/ trigger
        _scheduler.ScheduleJob(detail, trigger);    

The last line above failed with Exception :

U开发者_高级运维nable to find assembly 'System.Data.SQLite, Version=1.0.66.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'.

The SQLite assembly is there. Oddly enough this doesn't happen when I'm using RamJobStore. Anybody please help.


You're probably running into the SQlite x86 vs x64 issue or the SQlite on .NET 4 issue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜