Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "motaj1982"

Question

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)

Hi!

Sorry, was my wrong... All working very well.

Thank you very much!

Good morning!

The error still happening...

PM> Update-Database
Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
No pending explicit migrations.
Running Seed method.
System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
   at System.Guid.TryParseGuidWithNoStyle(String guidString, GuidResult& result)
   at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
   at System.Guid.Parse(String input)
   at FGV.SCEO.Migrations.Seed.PopulaTiposInsumos.CreateTiposInsumos() in C:\Users\joao.damota\Desktop\SCEO\FGV.SCEO.EntityFramework\Migrations\Seed\PopulaTiposInsumos.cs:line 38
   at FGV.SCEO.Migrations.Seed.PopulaTiposInsumos.Create() in C:\Users\joao.damota\Desktop\SCEO\FGV.SCEO.EntityFramework\Migrations\Seed\PopulaTiposInsumos.cs:line 27
   at FGV.SCEO.Migrations.Seed.InitialDbBuilder.Create() in C:\Users\joao.damota\Desktop\SCEO\FGV.SCEO.EntityFramework\Migrations\Seed\InitialDbBuilder.cs:line 29
   at FGV.SCEO.Migrations.Configuration.Seed(SCEODbContext context) in C:\Users\joao.damota\Desktop\SCEO\FGV.SCEO.EntityFramework\Migrations\Configuration.cs:line 16
   at System.Data.Entity.Migrations.DbMigrationsConfiguration`1.OnSeed(DbContext context)
   at System.Data.Entity.Migrations.DbMigrator.SeedDatabase()
   at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.SeedDatabase()
   at System.Data.Entity.Migrations.DbMigrator.Upgrade(IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
   at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.Upgrade(IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
   at System.Data.Entity.Migrations.DbMigrator.UpdateInternal(String targetMigration)
   at System.Data.Entity.Migrations.DbMigrator.<>c__DisplayClassc.<Update>b__b()
   at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
   at System.Data.Entity.Migrations.Infrastructure.MigratorBase.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
   at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
   at System.Data.Entity.Migrations.Infrastructure.MigratorBase.Update(String targetMigration)
   at System.Data.Entity.Migrations.Design.ToolingFacade.UpdateRunner.Run()
   at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
   at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
   at System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner runner)
   at System.Data.Entity.Migrations.Design.ToolingFacade.Update(String targetMigration, Boolean force)
   at System.Data.Entity.Migrations.UpdateDatabaseCommand.<>c__DisplayClass2.<.ctor>b__0()
   at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Erro: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Could you help me?

That error just happen in Entities with Guid as Id...

In PACKAGE MANAGE CONSOLE:

PM> Update-Database -Verbose
Using StartUp project 'FGV.SCEO.Web'.
Using NuGet project 'FGV.SCEO.EntityFramework'.
Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
Target database is: 'FGV_DO_SCEO' (DataSource: tcp:DC7049.FGV.BR, Provider: System.Data.SqlClient, Origin: Configuration).
No pending explicit migrations.
Running Seed method.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Abp.EntityFramework.AbpDbContext.CheckAndSetId(DbEntityEntry entry)
   at Abp.EntityFramework.AbpDbContext.ApplyAbpConcepts()
   at Abp.EntityFramework.AbpDbContext.SaveChanges()
   at FGV.SCEO.Migrations.Seed.PopulaClassificacoesContabeis.AddClassificacaoContabilIfNotExists(ClassificacaoContabil item) in C:\Users\joao.damota\Desktop\SCEO\FGV.SCEO.EntityFramework\Migrations\Seed\PopulaClassificacoesContabeis.cs:line 56
   at FGV.SCEO.Migrations.Seed.PopulaClassificacoesContabeis.CreateClassificacoesContabeis() in C:\Users\joao.damota\Desktop\SCEO\FGV.SCEO.EntityFramework\Migrations\Seed\PopulaClassificacoesContabeis.cs:line 43
   at FGV.SCEO.Migrations.Seed.PopulaClassificacoesContabeis.Create() in C:\Users\joao.damota\Desktop\SCEO\FGV.SCEO.EntityFramework\Migrations\Seed\PopulaClassificacoesContabeis.cs:line 36
   at FGV.SCEO.Migrations.Seed.InitialDbBuilder.Create() in C:\Users\joao.damota\Desktop\SCEO\FGV.SCEO.EntityFramework\Migrations\Seed\InitialDbBuilder.cs:line 26
   at FGV.SCEO.Migrations.Configuration.Seed(SCEODbContext context) in C:\Users\joao.damota\Desktop\SCEO\FGV.SCEO.EntityFramework\Migrations\Configuration.cs:line 16
   at System.Data.Entity.Migrations.DbMigrationsConfiguration`1.OnSeed(DbContext context)
   at System.Data.Entity.Migrations.DbMigrator.SeedDatabase()
   at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.SeedDatabase()
   at System.Data.Entity.Migrations.DbMigrator.Upgrade(IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
   at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.Upgrade(IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
   at System.Data.Entity.Migrations.DbMigrator.UpdateInternal(String targetMigration)
   at System.Data.Entity.Migrations.DbMigrator.<>c__DisplayClassc.<Update>b__b()
   at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
   at System.Data.Entity.Migrations.Infrastructure.MigratorBase.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
   at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
   at System.Data.Entity.Migrations.Infrastructure.MigratorBase.Update(String targetMigration)
   at System.Data.Entity.Migrations.Design.ToolingFacade.UpdateRunner.Run()
   at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
   at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
   at System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner runner)
   at System.Data.Entity.Migrations.Design.ToolingFacade.Update(String targetMigration, Boolean force)
   at System.Data.Entity.Migrations.UpdateDatabaseCommand.<>c__DisplayClass2.<.ctor>b__0()
   at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
Object reference not set to an instance of an object.

Final Error: Object reference not set to an instance of an object.

Hello! Could you help me?

I want an entity (table) with an integer primary key (Default like shown below), but I need the fields "GenericoId" and "VersaoId" like composite index unique.

How can I do that?

public class VersaoDado : FullAuditedEntity
    {
        public virtual Guid GenericoId { get; set; }

        [ForeignKey("VersaoId")]
        public virtual int VersaoId { get; set; }
        public virtual Versao Versoes { get; set; }

    }
Showing 1 to 5 of 5 entries