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

Activities of "manojreddy"

Any updates please?

I tried the below scenarios, still giving warning.

  1. Clean, Build
  2. Clean, Package Restore, Build

Yes, I was on .net core 1.1 before, now targeting all the projects to core2.0.

I didn't get your question, Could you please explain it clearly?

Do you have inherited entities which are used in this test ?

Tried but still the same issue.

Tried this code:

using Abp.Domain.Uow;

[UnitOfWork]
public virtual MyEntityInput GetMyEntityDetailsforEditRepo(EntityDto input)
{
public MyEntityInput GetMyEntityDetailsforEditRepo(EntityDto input)
	{
		var MyEntityDetails = ObjectMapper.Map<MyEntityInput>(Get(input.Id));
		var MyChildEntity = from tjs in _myChildMyEntityAssociationRepository.GetAll()
							   join tj in _myChildEntityRepository.GetAll() on tjs.MyChildEntityId equals tj.Id
							   where tjs.MyEntityId == input.Id
							   select new MyChildEntityDetailsDto
							   {
								   Id = tj.Id,
								   MyChildEntityCode = tj.MyChildEntityCode,
								   MyChildEntityDesc = tj.MyChildEntityDesc,
								   MyChildEntityName = tj.MyChildEntityName
							   };
		MyEntityDetails.MyChildEntity = ObjectMapper.Map<List<MyChildEntityDetailsDto>>(MyChildEntity);
		return MyEntityDetails;
	}

Getting the below exception, while calling the above method.

INFO 2017-12-22 09:08:26,189 [25 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-22 09:08:26,227 [22 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method MyCompany.MyProject.Business.Services.MyEntitys.MyEntityAppService.GetMyEntityDetailsforEdit (MyCompany.MyProject.Business.Services) with arguments (Abp.Application.Services.Dto.EntityDto) - ModelState is Valid INFO 2017-12-22 09:08:28,835 [25 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method MyCompany.MyProject.Business.Services.Common.CommonAppService.GetLookupItems (MyCompany.MyProject.Business.Services) with arguments (MyCompany.MyProject.Business.Dto.Common.GetLookupInput) - ModelState is Valid INFO 2017-12-22 09:09:16,443 [25 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-22 09:09:16,449 [25 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action MyCompany.MyProject.Business.Services.Common.CommonAppService.GetLookupItems (MyCompany.MyProject.Business.Services) in 50348.6255ms INFO 2017-12-22 09:09:16,477 [25 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 50385.6354ms 200 application/json; charset=utf-8 ERROR 2017-12-22 09:09:16,480 [22 ] Mvc.ExceptionHandling.AbpExceptionFilter - There is already an open DataReader associated with this Command which must be closed first. System.InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first. at System.Data.SqlClient.SqlInternalConMyCompanytionTds.ValidateConMyCompanytionForExecute(SqlCommand command) at System.Data.SqlClient.SqlInternalTransaction.Rollback() at System.Data.SqlClient.SqlTransaction.Dispose(Boolean disposing) at System.Data.Common.DbTransaction.Dispose() at Microsoft.EntityFrameworkCore.Storage.RelationalTransaction.Dispose() at Abp.EntityFrameworkCore.Uow.DbContextEfCoreTransactionStrategy.Dispose(IIocResolver iocResolver) in D:\Github\aspnetboilerplate\src\Abp.EntityFrameworkCore\EntityFrameworkCore\Uow\DbContextEfCoreTransactionStrategy.cs:line 84 at Abp.EntityFrameworkCore.Uow.EfCoreUnitOfWork.DisposeUow() in D:\Github\aspnetboilerplate\src\Abp.EntityFrameworkCore\EntityFrameworkCore\Uow\EfCoreUnitOfWork.cs:line 143 at Abp.Domain.Uow.UnitOfWorkBase.Dispose() in D:\Github\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkBase.cs:line 296 at Abp.AspNetCore.Mvc.Uow.AbpUowActionFilter.<OnActionExecutionAsync>d__4.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.AspNetCore\AspNetCore\Mvc\Uow\AbpUowActionFilter.cs:line 51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__23.MoveNext() INFO 2017-12-22 09:09:16,503 [22 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-22 09:09:16,516 [22 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action MyCompany.MyProject.Business.Services.MyEntitys.MyEntityAppService.GetMyEntityDetailsforEdit (MyCompany.MyProject.Business.Services) in 50358.9931ms INFO 2017-12-22 09:09:16,559 [22 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 50467.3493ms 500 application/json; charset=utf-8

Didn't get >So only the last SetBasePath matters, as it's only used on Build. , Could you please explain.

Still facing the issue. Getting the below message while running test case.

Its searching appsettings.json in Test Module path.

[12/22/2017 7:32:04 AM Informational] [xUnit.net 00:01:13.1092474] Starting: MyCompany.MyProject.Tests [12/22/2017 7:32:09 AM Error] [xUnit.net 00:01:17.2516509] MyCompany.MyProject.Tests.MyEntity.MyEntityAppService_Test.Should_Create_MyEntity_With_Valid_Arguments [FAIL] [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2540945] Castle.MicroKernel.ComponentActivator.ComponentActivatorException : ComponentActivator: could not instantiate MyCompany.MyProject.Tests.TestAppConfigurationAccessor [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2541647] ---- System.IO.FileNotFoundException : The configuration file 'appsettings.json' was not found and is not optional. The physical path is 'C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\bin\Debug\netcoreapp2.0\appsettings.json'. [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2556024] Stack Trace: [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2567318] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstanceCore(ConstructorCandidate constructor, Object[] arguments, Type implType) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2568189] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, ConstructorCandidate constructor, Object[] arguments) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2568730] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2569150] at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2569605] at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2582037] at Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2582823] at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2583437] at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2583926] at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.Resolve(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2584414] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateConstructorArguments(ConstructorCandidate constructor, CreationContext context) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2584852] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2585230] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2585655] at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2586074] at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2586457] at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2586923] at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2587307] at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2587745] at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2588209] at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2589080] D:\Github\aspnetboilerplate\src\Abp\Dependency\IocResolverExtensions.cs(30,0): at Abp.Dependency.IocResolverExtensions.ResolveAsDisposable[T](IIocResolver iocResolver, Type type) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2589677] D:\Github\aspnetboilerplate\src\Abp\Configuration\SettingDefinitionManager.cs(32,0): at Abp.Configuration.SettingDefinitionManager.Initialize() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2590223] D:\Github\aspnetboilerplate\src\Abp\AbpKernelModule.cs(73,0): at Abp.AbpKernelModule.PostInitialize() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2590653] at System.Collections.Generic.List1.ForEach(Action1 action) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2591088] D:\Github\aspnetboilerplate\src\Abp\AbpBootstrapper.cs(158,0): at Abp.AbpBootstrapper.Initialize() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2591515] D:\Github\aspnetboilerplate\src\Abp.TestBase\TestBase\AbpIntegratedTestBase.cs(53,0): at Abp.TestBase.AbpIntegratedTestBase1.InitializeAbp() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2592108] C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\AppTestBase.cs(27,0): at MyCompany.MyProject.Tests.AppTestBase..ctor() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2592664] C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\MyEntity\MyEntityAppServiceTestBase.cs(10,0): at MyCompany.MyProject.Tests.MyEntity.MyEntityAppServiceTestBase..ctor() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2593184] C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\MyEntity\MyEntityappservice_test.cs(12,0): at MyCompany.MyProject.Tests.MyEntity.MyEntityAppService_Test..ctor() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2593581] ----- Inner Stack Trace ----- [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2593969] at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2594422] at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2594790] at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList1 providers) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2595191] at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2595649] C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\TestAppConfigurationAccessor.cs(34,0): at MyCompany.MyProject.Tests.TestAppConfigurationAccessor.BuildConfig() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2596233] C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\TestAppConfigurationAccessor.cs(19,0): at MyCompany.MyProject.Tests.TestAppConfigurationAccessor..ctor() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2596609] at lambda_method(Closure , Object[] ) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2597049] at Castle.Core.Internal.ReflectionUtil.Instantiate[TBase](Type subtypeofTBase, Object[] ctorArgs) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2597502] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstanceCore(ConstructorCandidate constructor, Object[] arguments, Type implType) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2980342] Finished: MyCompany.MyProject.Tests [12/22/2017 7:32:09 AM Informational] ========== Run test finished: 1 run (0:01:32.5026945) ==========

I don't have MyProjectWebHostModule.cs file, shall I add new? Do I need to add any dependency in that?

I have kept appsettings.json file in Host project as well with the license code. And I'm trying to read it from that location.

yes, Test Project has appsettings.json has the license code.

Did you check my post?, I have mentioned it in my reply.

Please check the post first.

Showing 131 to 140 of 267 entries