Last active
January 18, 2017 21:27
-
-
Save kleberksms/e4ab08d9fc3ef81c2fc8e8c7858cd751 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{System.ObjectDisposedException: Cannot access a disposed object. A common cause of this error is disposing a context that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling Dispose() on the context, or wrapping the context in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances. | |
Object name: 'SistemaJuridicoContext'. | |
at Microsoft.EntityFrameworkCore.DbContext.get_InternalServiceProvider() | |
at Microsoft.EntityFrameworkCore.DbContext.get_ChangeTracker() | |
at Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator.GenerateCacheKeyCore(Expression query, Boolean async) | |
at Microsoft.EntityFrameworkCore.Query.Internal.RelationalCompiledQueryCacheKeyGenerator.GenerateCacheKeyCore(Expression query, Boolean async) | |
at Microsoft.EntityFrameworkCore.Query.Internal.RelationalCompiledQueryCacheKeyGenerator.GenerateCacheKey(Expression query, Boolean async) | |
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQuery[TResult](Expression query) | |
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) | |
at Remotion.Linq.QueryableBase`1.GetEnumerator() | |
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) | |
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) | |
at SistemaJuridico.DiarioJustica.Repository.LegacyDataAccess.ProcessoPrazoRepository.RetornaProcessoCnjEChavePrimariaProcessoPrazo(List`1 processosCnj) in C:\Users\Kleber\Documents\Visual Studio 2015\Projects\SistemaJuridico\src\SistemaJuridico.DiarioJustica\Repository\LegacyDataAccess\ProcessoPrazoRepository.cs:line 23 | |
at SistemaJuridico.DiarioJustica.Model.LegacyStructure.Services.ImportacaoDiarioJusticaService.CarregarDados(IEnumerable`1 importacoes) in C:\Users\Kleber\Documents\Visual Studio 2015\Projects\SistemaJuridico\src\SistemaJuridico.DiarioJustica\Model\LegacyStructure\Services\ImportacaoDiarioJusticaService.cs:line 28 | |
at SistemaJuridico.DiarioJustica.Controllers.V1.PublicacaoOnlineController.<RetornaDados>d__6.MoveNext() in C:\Users\Kleber\Documents\Visual Studio 2015\Projects\SistemaJuridico\src\SistemaJuridico.DiarioJustica\Controllers\V1\PublicacaoOnlineController.cs:line 45} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
at Microsoft.EntityFrameworkCore.DbContext.get_InternalServiceProvider() | |
at Microsoft.EntityFrameworkCore.DbContext.get_ChangeTracker() | |
at Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator.GenerateCacheKeyCore(Expression query, Boolean async) | |
at Microsoft.EntityFrameworkCore.Query.Internal.RelationalCompiledQueryCacheKeyGenerator.GenerateCacheKeyCore(Expression query, Boolean async) | |
at Microsoft.EntityFrameworkCore.Query.Internal.RelationalCompiledQueryCacheKeyGenerator.GenerateCacheKey(Expression query, Boolean async) | |
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQuery[TResult](Expression query) | |
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) | |
at Remotion.Linq.QueryableBase`1.GetEnumerator() | |
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) | |
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) | |
at SistemaJuridico.DiarioJustica.Repository.LegacyDataAccess.ProcessoPrazoRepository.RetornaProcessoCnjEChavePrimariaProcessoPrazo(List`1 processosCnj) in C:\Users\Kleber\Documents\Visual Studio 2015\Projects\SistemaJuridico\src\SistemaJuridico.DiarioJustica\Repository\LegacyDataAccess\ProcessoPrazoRepository.cs:line 23 | |
at SistemaJuridico.DiarioJustica.Model.LegacyStructure.Services.ImportacaoDiarioJusticaService.CarregarDados(IEnumerable`1 importacoes) in C:\Users\Kleber\Documents\Visual Studio 2015\Projects\SistemaJuridico\src\SistemaJuridico.DiarioJustica\Model\LegacyStructure\Services\ImportacaoDiarioJusticaService.cs:line 28 | |
at SistemaJuridico.DiarioJustica.Controllers.V1.PublicacaoOnlineController.<RetornaDados>d__6.MoveNext() in C:\Users\Kleber\Documents\Visual Studio 2015\Projects\SistemaJuridico\src\SistemaJuridico.DiarioJustica\Controllers\V1\PublicacaoOnlineController.cs:line 45 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment