jobsqueue appear error

Topics: Administration
Feb 5, 2015 at 4:26 AM
Hi,I meet a problem,
When I use Orchard.JobsQueue to do task, that can insert into database, but When Excuting appears error,like this,
 http://localhost/Admin/Orchard.JobsQueue/List
System.InvalidCastException: 指定的转换无效。
   在 Orchard.Events.DelegateHelper.<>c__DisplayClass2e`3.<BuildAction>b__2d(Object target, Object[] p) 位置 e:\C#\项目\orchard-1.x\src\Orchard\Events\DelegateHelper.cs:行号 122
   在 Orchard.Events.DefaultOrchardEventBus.TryInvokeMethod(IEventHandler eventHandler, Type interfaceType, String messageName, String interfaceName, String methodName, IDictionary`2 arguments, IEnumerable& returnValue) 位置 e:\C#\项目\orchard-1.x\src\Orchard\Events\DefaultOrchardEventBus.cs:行号 81
   在 Orchard.Events.DefaultOrchardEventBus.TryInvoke(IEventHandler eventHandler, String messageName, String interfaceName, String methodName, IDictionary`2 arguments, IEnumerable& returnValue) 位置 e:\C#\项目\orchard-1.x\src\Orchard\Events\DefaultOrchardEventBus.cs:行号 67
   在 Orchard.Events.DefaultOrchardEventBus.TryNotifyHandler(IEventHandler eventHandler, String messageName, String interfaceName, String methodName, IDictionary`2 eventData, IEnumerable& returnValue) 位置 e:\C#\项目\orchard-1.x\src\Orchard\Events\DefaultOrchardEventBus.cs:行号 53
2015-02-05 11:16:11,971 [14] Orchard.Exceptions.DefaultExceptionPolicy - Default - An unexpected exception was caught
and my code:
   public interface IStaticService:IEventHandler
    {
       void CreateFile(int id, string relativeUrl);
    }

add To Job code:
 _jobsQueueService.Enqueue("IStaticService.CreateFile", new { id = id, relativeUrl = relativeUrl }, 0);
I found that in EmailAcitivity, code is like this, help me ,thanks.