The two test projects?
Thanks @maliming, I now have x86 for both the_ Tests_ and_ Test.Base_ projects. The error is now:
Message: Castle.MicroKernel.ComponentNotFoundException : No component for supporting the service Abp.Organizations.OrganizationUnitManager was found
I'm sure we're getting close!
@ismcagdas, thanks. I now have:
[DependsOn(typeof(NuagecareTestBaseModule))]
public class NuagecareTestModule : AbpModule
{
}
and
[DependsOn(
typeof(NuagecareApplicationModule),
typeof(NuagecareEntityFrameworkCoreModule),
typeof(AbpTestBaseModule))]
public class NuagecareTestBaseModule : AbpModule
But I'm getting the following error. I have googled the forum and the github pages but not found this specific error. It may well be a result of a the merge from 5.4.1 to 6.8.0.
Message: System.TypeInitializationException : The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception.
---- System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
-------- System.DllNotFoundException : Unable to load DLL 'e_sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
@maliming, thank you.
@maliming, that's brilliant. Thank you for pointing this out, now I know how to find and analyse this particular problem. One question before I close the issue. In the log the details read:
Request starting HTTP/1.1 POST http://lindseyhall.nuagecare.io/api/TokenAuth/Authenticate
When I have everything set up as https why is this logged as a http call?
I can live with it. I don't want this to take up your time, you have more important stuff to attend to. It'll probably go away on a new release!
This problem happened again last night. Here is an image of my host audit log showing the intermittent nature of these login failures from the same tenant (fixed IP at 86.18.107.193). Last night at 20:39:47 I have the following api entry. Parameters;
{
"model": {
"userNameOrEmailAddress": "HELENB",
"twoFactorVerificationCode": null,
"rememberClient": false,
"twoFactorRememberClientToken": null,
"singleSignIn": false,
"returnUrl": null
}
}
And here is the error state:
Abp.UI.UserFriendlyException: Login failed!
at Nuagecare.Web.Controllers.TokenAuthController.<GetLoginResultAsync>d__36.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nuagecare.Web.Controllers.TokenAuthController.<Authenticate>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at lambda_method(Closure , Object )
at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.<Execute>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext()
Here is the entry in the log:
WARN 2019-04-15 19:39:50,050 [105 ] Mvc.ExceptionHandling.AbpExceptionFilter - Login failed!
Abp.UI.UserFriendlyException: Login failed!
at Nuagecare.Web.Controllers.TokenAuthController.<GetLoginResultAsync>d__36.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nuagecare.Web.Controllers.TokenAuthController.<Authenticate>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at lambda_method(Closure , Object )
at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.<Execute>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
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 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__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__24.MoveNext()
INFO 2019-04-15 19:39:50,050 [105 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'.
INFO 2019-04-15 19:39:50,050 [105 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nuagecare.Web.Controllers.TokenAuthController.Authenticate (Nuagecare.Web.Core) in 2451.3904ms
INFO 2019-04-15 19:39:50,050 [105 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'Nuagecare.Web.Controllers.TokenAuthController.Authenticate (Nuagecare.Web.Core)'
INFO 2019-04-15 19:39:50,050 [105 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 2479.118ms 500 application/json; charset=utf-8
I have no idea how to attach the entire log file but these are the entries for thread 105. It's an on-going problem. The user has not attempted a sign in since so I can't say whether the problem has been fixed.
@replink, I have to allow connections from Ionic apps and I too had to add the following line:
.SetIsOriginAllowed((host) => true)
Is there any reason we can not add this to Zero as a standard?
Hi Aaron,
I'm having a go at this again. No matter how Icomment out the first two depends I seem to be getting problems. can you suggest a way forward?
using Abp.Modules;
using Abp.TestBase;
using Abp.Zero;
using Nuagecare.Test.Base;
namespace Nuagecare.Tests
{
[DependsOn(typeof(NuagecareTestBaseModule),
typeof(NuagecareTestModule),
typeof(NuagecareApplicationModule),
typeof(NuagecareCoreModule),
typeof(AbpZeroCoreModule),
typeof(AbpZeroCommonModule))]
public class NuagecareTestModule : AbpModule
{
}
}
Good pointer @maliming. I will re-open 5195 and close this as answered.