Hi, I discovered that classes that get a CreationTime property from FullAuditedEntity interface don't show that property in the Angular client. So what's the propper way of showing/getting that time in the Angular client in those cases?
I have created an input DTO with custom validation as described in [https://aspnetboilerplate.com/Pages/Documents/Validating-Data-Transfer-Objects?searchKey=validation])
When the validation fails the HTTP status code 500 is set. This is wrong. It should be 400.
From the logs:
WARN 2018-08-24 05:37:46,252 [3 ] Mvc.ExceptionHandling.AbpExceptionFilter - Method arguments are not valid! See ValidationErrors for details.
Abp.Runtime.Validation.AbpValidationException: Method arguments are not valid! See ValidationErrors for details.
at Abp.Runtime.Validation.Interception.MethodInvocationValidator.ThrowValidationError()
at Abp.Runtime.Validation.Interception.MethodInvocationValidator.Validate()
at Abp.AspNetCore.Mvc.Validation.AbpValidationActionFilter.<OnActionExecutionAsync>d__3.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.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__13.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__24.MoveNext()
WARN 2018-08-24 05:37:46,255 [3 ] Mvc.ExceptionHandling.AbpExceptionFilter - There are 2 validation errors:
WARN 2018-08-24 05:37:46,255 [3 ] Mvc.ExceptionHandling.AbpExceptionFilter - AssignedPersonId must be set if SendEmailToAssignedPerson is true!
WARN 2018-08-24 05:37:46,255 [3 ] Mvc.ExceptionHandling.AbpExceptionFilter - The Description field is required. (Description)
INFO 2018-08-24 05:37:46,258 [3 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action B4Payment.SEPAexpress.Api.V2.Customers.CustomersAppService.CreateCustomer (B4Payment.SEPAexpress.Api.V2) in 434.6818ms
ERROR 2018-08-24 05:37:46,261 [3 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HLG9EBGV8MG4", Request id "0HLG9EBGV8MG4:00000004": An unhandled exception was thrown by the application.
Abp.Runtime.Validation.AbpValidationException: Method arguments are not valid! See ValidationErrors for details.
bei Abp.Runtime.Validation.Interception.MethodInvocationValidator.ThrowValidationError()
bei Abp.Runtime.Validation.Interception.MethodInvocationValidator.Validate()
bei Abp.AspNetCore.Mvc.Validation.AbpValidationActionFilter.<OnActionExecutionAsync>d__3.MoveNext()
…
Any ideas what I do wrong?
How can I enable Swagger to use XML comments?
Something like:
options.IncludeXmlComments
in Startup.cs of Web.Host? But how does that work together with AbpModules?
Hi all,
could someone please give me a hint how to use the Bootstrap Markdown editor? It looks for me all dependencies, etc. are already there. But using data-provide="markdown" does not work.
Is anyone using this already?
Markus
Why are there warnings in a newly created project?
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.ComponentModel.DataAnnotations". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. 8>C:\Users\markusbernhardt\Source\Repos\Acme.Test\aspnet-core\src\Acme.Test.Web.Core\Acme.Test.Web.Core.csproj : warning NU1603: Hangfire.Core 1.6.17 depends on Newtonsoft.Json (>= 5.0.0) but Newtonsoft.Json 5.0.0 was not found. An approximate best match of Newtonsoft.Json 5.0.1 was resolved. 9>Localization\LanguageAppService_Tests.cs(28,17,28,42): warning CS0162: Unreachable code detected 9>MultiTenantFactAttribute.cs(11,17,11,21): warning CS0162: Unreachable code detected 9>MultiTenantTheoryAttribute.cs(11,17,11,21): warning CS0162: Unreachable code detected 10>C:\Users\markusbernhardt\Source\Repos\Acme.Test\aspnet-core\src\Acme.Test.Web.Host\Acme.Test.Web.Host.csproj : warning NU1603: Hangfire.Core 1.6.17 depends on Newtonsoft.Json (>= 5.0.0) but Newtonsoft.Json 5.0.0 was not found. An approximate best match of Newtonsoft.Json 5.0.1 was resolved. 11>C:\Users\markusbernhardt\Source\Repos\Acme.Test\aspnet-core\src\Acme.Test.Web.Public\Acme.Test.Web.Public.csproj : warning NU1603: Hangfire.Core 1.6.17 depends on Newtonsoft.Json (>= 5.0.0) but Newtonsoft.Json 5.0.0 was not found. An approximate best match of Newtonsoft.Json 5.0.1 was resolved. 11>Startup\AuthConfigurer.cs(15,13,15,30): warning CS0618: 'BuilderExtensions.UseIdentity(IApplicationBuilder)' is obsolete: 'This method is obsolete and will be removed in a future version. The recommended alternative is UseAuthentication(). See <a class="postlink" href="https://go.microsoft.com/fwlink/?linkid=845470'">https://go.microsoft.com/fwlink/?linkid=845470'</a>
According to your documentation the Web.Mvc "is the main application which is entered by username and password."
In my fresh generated project v5.2.0, .Net 4.6.1, AspNetZeroAngular2 this assembly does not exist.
What to do now?