Skip to content

Pomelo.AspNetCore.TimedJob StartHardTimers convert to int32 error #13

@liguobao

Description

@liguobao

System.OverflowException: Value was either too large or too small for an Int32.
at System.Convert.ToInt32(Double value)
at Pomelo.AspNetCore.TimedJob.TimedJobService.StartHardTimers()
at Pomelo.AspNetCore.TimedJob.TimedJobService..ctor(IAssemblyLocator locator, IServiceProvider services)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, ServiceProvider provider)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProvider provider)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.<>c__DisplayClass16_0.b__0(ServiceProvider provider)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Microsoft.AspNetCore.Builder.TimedJobExtensions.UseTimedJob(IApplicationBuilder self)
at Dy2018CrawlerWithDB.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in C:\code\github\Dy2018Crawler\src\Dy2018CrawlerForDB\Startup.cs:line 44}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions