Base solution for your next web application
Open Closed

BackgroundJob's Error #993


User avatar
0
motaj1982 created

Hello!

I'm using a BackgroundJob for run a big process, but when my process comes to 10 minutes of processing, It shows the Error below:

It is about timeout or something like this...

I put this

Configuration.UnitOfWork.Timeout = TimeSpan.FromMinutes(30);

in my CoreModule.cs, but it doesn't work.

Could You help me?

My Log:

System.ApplicationException: The underlying provider failed on Open.
   em FGV.SCEO.CargasIniciais.CargaInicialJob.Execute(Int32 args) na C:\DESENVOLVIMENTOS\sceo\src\FGV.SCEO.Application\CargasIniciais\CargaInicialJob.cs:linha 1113
   em Castle.Proxies.CargaInicialJobProxy.Execute_callback(Int32 args)
   em Castle.Proxies.Invocations.CargaInicialJob_Execute.InvokeMethodOnTarget()
   em Castle.DynamicProxy.AbstractInvocation.Proceed()
   em Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options)
   em Abp.Domain.Uow.UnitOfWorkInterceptor.PerformUow(IInvocation invocation, UnitOfWorkOptions options)
   em Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation)
   em Castle.DynamicProxy.AbstractInvocation.Proceed()
   em Castle.Proxies.CargaInicialJobProxy.Execute(Int32 args)

1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    It seems your application can not connect to database. Are you sure your connection string is true and your background job uses it.