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

Activities of "exlnt"

I am running into another validation issue on one of my forms. I cannot figure out how to fix this issue. I'm not saying this is an issue of the aspnetzero template. But this was code that was working just fine prior to my V4.x upgrade. I have an entity named "Prospect" in my application. The create modal for this entity only has about 4/5 required fields, everything else is optional and no values are required by the user. However the ABP validation mechanism is firing an error message on my all my optional fields (all dropdowns). All my dropdowns have a value of "null" on the seed entry.

var defaultItem = new ComboboxItemDto("null", L("NotAssigned"));

I copied this from the edition app service below.

public async Task<List<ComboboxItemDto>> GetEditionComboboxItems(int? selectedEditionId = null)
        {
            var editions = await _editionManager.Editions.ToListAsync();
            var editionItems = new ListResultDto<ComboboxItemDto>(editions.Select(e => new ComboboxItemDto(e.Id.ToString(), e.DisplayName)).ToList()).Items.ToList();

            var defaultItem = new ComboboxItemDto("null", L("NotAssigned"));
            editionItems.Insert(0, defaultItem);

            if (selectedEditionId.HasValue)
            {
                var selectedEdition = editionItems.FirstOrDefault(e => e.Value == selectedEditionId.Value.ToString());
                if (selectedEdition != null)
                {
                    selectedEdition.IsSelected = true;
                }
            }
            else
            {
                defaultItem.IsSelected = true;
            }

            return editionItems;
        }

Here are the errors logged in the log file: [https://drive.google.com/file/d/0B5HAoiVVXzY7T0pzVVh3NWY5VU0/view?usp=sharing]). All of the fields mentioned in the log file are optional and should not be flagged by the ABP validation method as errors.

Can someone help me on how I can suppress this validation error?

I just downloaded ASPNETZERO .Net Core 1.1, version 4.1.4 from ASPNETZERO. When I open and run the solution, the UI is not working at all, all the CSS/JS references are missing. The "lib" folder under the wwwroot folder is completely missing. I rechecked my ZIP file download and it does not contain that folder either. Is this normal? How do I get all the UI components into the lib folder? What do I need to copy from Metronic files?

I am following the solutions provided on this thread: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/96">https://github.com/aspnetzero/aspnet-zero/issues/96</a> to upgrade my existing ASPNETZERO project to V4.1. I am using the .NET 4.6.1 MVC template.

  1. I downloaded a fresh copy of my solution and placed that into new "ABPMaster" branch.
  2. Then I took my working copy of my dev branch into new "staging" branch.
  3. Then I copy/paste all the projects and files from "ABPMaster" into "staging" branch, with replace YES option.
  4. I manually enable/copy all the custom changes I have implemented. Get a clean build of all projects.
  5. I then scaffold one EF migration for ALL ABP changes.
  6. I then scaffold one EF migration for ALL Custom changes for my app.
  7. I then applied both migrations to new DB instances.
  8. I run the app and login to host using default admin account. All of the pages in the host solution where JTable is used, do not render the "Actions" cell. Google console shows no errors and the HTML for that cell is completely empty. I cannot check or grant any permissions to admin account, as the buttons wont render! Screenshot: <a class="postlink" href="https://drive.google.com/file/d/0B5HAoiVVXzY7QlEyRkN4dHQzQnM/view?usp=sharing">https://drive.google.com/file/d/0B5HAoi ... sp=sharing</a>

I posted this [https://forum.aspnetboilerplate.com/viewtopic.php?f=2&t=9090]) the other day. Today I downloaded the .Net Core 1.1 template again and added just a couple of entity classes. Soon as the migration is scaffolded or the app is run the error appears. Has anyone else run into this issue?

I just downloaded the latest version of ABP template for new project. I am using the .NET Core 1.1 MVC template.

So far the only change I have made is add my custom entity classes into MyProject.Core project. After adding them, I updated the DBContext and was setting up the first EF migration. Soon as I run the add migration cmd I get the error below.

System.InvalidOperationException: Unable to determine the relationship represented by navigation property 'User.DeleterUser' of type 'User'. Either manually configure the relationship, or ignore this property from the model.
   at Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.PropertyMappingValidationConvention.Apply(InternalModelBuilder modelBuilder)
   at Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ConventionDispatcher.OnModelBuilt(InternalModelBuilder modelBuilder)
   at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.CreateModel(DbContext context, IConventionSetBuilder conventionSetBuilder, IModelValidator validator)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel()
   at Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value()
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.&lt;&gt;c__DisplayClass16_0.&lt;RealizeService&gt;b__0(ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitTransient(TransientCallSite transientCallSite, ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitTransient(TransientCallSite transientCallSite, ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.&lt;&gt;c__DisplayClass16_0.&lt;RealizeService&gt;b__0(ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.AddMigration(String name, String outputDir, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.&lt;&gt;c__DisplayClass3_0`1.<Execute>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Unable to determine the relationship represented by navigation property 'User.DeleterUser' of type 'User'. Either manually configure the relationship, or ignore this property from the model.

None of my custom entities has this property, so I dont understand where this is coming from?

I have created a very basic create method for a new entity in my solution. It follows the same pattern as many of the other ones I have created. Yet it keeps failing with a validation error. I also cannot get the VS2017 debugger to hit or stop on the app service method. When I run the code in debug, you can clearly see that call to the app service is being executed, as the validation error comes back from the app service method.

Here is the chrome console showing the values being passed to the app service create method call. <a class="postlink" href="https://drive.google.com/file/d/0B5HAoiVVXzY7NTRYb1Y3UGhMZ0E/view?usp=sharing">https://drive.google.com/file/d/0B5HAoi ... sp=sharing</a>

Here is the chrome console showing the result of the app service call and validation error. <a class="postlink" href="https://drive.google.com/file/d/0B5HAoiVVXzY7MWFwdHFsMlpId1k/view?usp=sharing">https://drive.google.com/file/d/0B5HAoi ... sp=sharing</a>

As you can see the property listed in the validation message is clearly getting passed to the app service method. Yet it keeps reporting that field is missing?

Here is my CreateInput DTO. <a class="postlink" href="https://drive.google.com/file/d/0B5HAoiVVXzY7Z3NiTmsyTzc1RXM/view?usp=sharing">https://drive.google.com/file/d/0B5HAoi ... sp=sharing</a>

The log file in the application also shows the same error message. I have been debugging this for the past few days now and I, for the life of me, cannot figure out what I am missing here! Another really strange thing is how VS2017 debugger will not hit the breakpoints in the app service method. It acts as if the code is not even being executed. Yet the chrome console clearly shows the call is being made. One other note, I tested this app service method from the solution's swagger UI and it works perfectly from there!

WARN  2017-06-10 15:34:06,818 [7    ] nHandling.AbpApiExceptionFilterAttribute - 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.Validate() in D:\Github\aspnetboilerplate\src\Abp\Runtime\Validation\Interception\MethodInvocationValidator.cs:line 94
   at Abp.Runtime.Validation.Interception.ValidationInterceptor.Intercept(IInvocation invocation) in D:\Github\aspnetboilerplate\src\Abp\Runtime\Validation\Interception\ValidationInterceptor.cs:line 31
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.NurseHomeFundingComboAppServiceProxy.CreateNurseHomeFundingCombo(CreateNurseHomeFundingComboInput input)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Abp.WebApi.Controllers.Dynamic.Interceptors.AbpDynamicApiControllerInterceptor`1.Intercept(IInvocation invocation) in D:\Github\aspnetboilerplate\src\Abp.Web.Api\WebApi\Controllers\Dynamic\Interceptors\AbpDynamicApiControllerInterceptor.cs:line 44
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.DynamicApiController`1Proxy_7.CreateNurseHomeFundingCombo(CreateNurseHomeFundingComboInput input)
   at lambda_method(Closure , Object , Object[] )
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass12.<GetExecutor>b__8(Object instance, Object[] methodParameters)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- 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 System.Web.Http.Controllers.ApiControllerActionInvoker.&lt;InvokeActionAsyncCore&gt;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 Abp.WebApi.Uow.AbpApiUowFilter.&lt;ExecuteActionFilterAsync&gt;d__5.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.Web.Api\WebApi\Uow\AbpApiUowFilter.cs:line 40
--- 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 Abp.WebApi.Validation.AbpApiValidationFilter.&lt;ExecuteActionFilterAsync&gt;d__5.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.Web.Api\WebApi\Validation\AbpApiValidationFilter.cs:line 40
--- 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 Abp.WebApi.Auditing.AbpApiAuditFilter.&lt;ExecuteActionFilterAsync&gt;d__4.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.Web.Api\WebApi\Auditing\AbpApiAuditFilter.cs:line 30
--- 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 System.Web.Http.Controllers.ActionFilterResult.&lt;ExecuteAsync&gt;d__2.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 Abp.WebApi.Security.AntiForgery.AbpAntiForgeryApiFilter.&lt;ExecuteAuthorizationFilterAsync&gt;d__10.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.Web.Api\WebApi\Security\AntiForgery\AbpAntiForgeryApiFilter.cs:line 59
--- 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 Abp.WebApi.Authorization.AbpApiAuthorizeFilter.&lt;ExecuteAuthorizationFilterAsync&gt;d__7.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.Web.Api\WebApi\Authorization\AbpApiAuthorizeFilter.cs:line 63
--- 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 System.Web.Http.Controllers.AuthenticationFilterResult.&lt;ExecuteAsync&gt;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 System.Web.Http.Controllers.ExceptionFilterResult.&lt;ExecuteAsync&gt;d__0.MoveNext()
WARN  2017-06-10 15:34:06,826 [7    ] nHandling.AbpApiExceptionFilterAttribute - There are 1 validation errors:
WARN  2017-06-10 15:34:06,826 [7    ] nHandling.AbpApiExceptionFilterAttribute - The FundingComboName field is required. (FundingComboName)
Question

I was reviewing the Metronic docs provided and wanted to implement "Stackable" modals (shown below) in my ASPNETZERO solution. [attachment=0:3lvo2x4q]Screenshot (27).png[/attachment:3lvo2x4q] I copied over the example HTML into my page. I am able to open a second modal from my existing "Edit" modal. However, when I click the close button on the second modal, it closes both modals. How can I manage this, given that the ASPNETZERO modals are working through the modalmanager.js file. Is there something additional that needs to be done in order to make it work in ASPNETZERO?

I have read the ABP documents on localization (<a class="postlink" href="https://www.aspnetboilerplate.com/Pages/Documents/v1.5.2/Localization">https://www.aspnetboilerplate.com/Pages ... calization</a>). I could not find any specific notes related to dates in the docs.

I changed the default language in my Chrome browser to be English UK. I ran my app and the dates are still displayed in USA format (MM/DD/YYYY). The language setting in my ABP solution is set on English UK, yet the dates still do not reflect the UK format (DD/MM/YYYY). Is there something additional that needs to be done to localize the dates?

Today, I downloaded the .NET Core 1.1 with MVC and EF from the ABP home page: <a class="postlink" href="https://www.aspnetboilerplate.com/">https://www.aspnetboilerplate.com/</a>, for a totally new application/project.

I am able to compile the solution and get my new DB created. When I start the web.host project it opens to the swagger Index page. When I downloaded the template I selected the checkbox to include module zero. However I do not see any of those items in the web.host project. I do not see any views, controllers or items related to tenants, logins, roles etc?

Can you please confirm if all those views/items should be included in the download I selected? If yes, is there an issue with the download?

My application has a business requirement to capture a detailed audit log of any changes made to "person" entity. My app needs to capture all of the values listed below. (I have already created a custom entity/table with the above columns).

TableName RecordId ColumnName BeforeValue AfterValue

What would be the best method to implement this audit trail using the ASPNETZERO/ABP template solution?

Showing 21 to 30 of 53 entries