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

Activities of "exlnt"

One more question/issue.

Is there some breaking change for how the Index view app services work in v4.1? All but one of my existing app services for index views is breaking. It seems to happen, mainly, on the index views where I have filters. It keeps failing with validation error messages? <a class="postlink" href="https://drive.google.com/file/d/0B5HAoiVVXzY7Zml1aDBjTWhMcmM/view?usp=sharing">https://drive.google.com/file/d/0B5HAoi ... sp=sharing</a>

The log file shows this detail for the same error:

WARN  2017-07-04 11:59:36,331 [129  ] 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.ThrowValidationError()
   at Abp.Runtime.Validation.Interception.MethodInvocationValidator.Validate()
   at Abp.WebApi.Validation.AbpApiValidationFilter.<ExecuteActionFilterAsync>d__5.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.Auditing.AbpApiAuditFilter.<ExecuteActionFilterAsync>d__4.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.ActionFilterResult.<ExecuteAsync>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.<ExecuteAuthorizationFilterAsync>d__10.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.Authorization.AbpApiAuthorizeFilter.<ExecuteAuthorizationFilterAsync>d__7.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.AuthenticationFilterResult.<ExecuteAsync>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.<ExecuteAsync>d__0.MoveNext()
WARN  2017-07-04 11:59:36,331 [129  ] nHandling.AbpApiExceptionFilterAttribute - There are 1 validation errors:
WARN  2017-07-04 11:59:36,331 [129  ] nHandling.AbpApiExceptionFilterAttribute -  (input.CompanyId)

The value for input.CompanyId on all my index views is NULL, this works just fine with my existing app on ABP version 1.5. Is there something that I need to do differently?

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?

<cite>alper: </cite> The rendering is done in this javascript file jquery.jtable.record-actions.js So it must be included in your layout. Can you check it?

Thank you very much! That script was missing from the BundleConfig.cs file! Its working now!

One other issue/question.

In my downloaded template I do not see the "Tenant Subscription System & Payment Integration" and dashboard updates. Are these things NOT built into the MVC template?

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>

<cite>ismcagdas: </cite> Hi @exlnt,

Can you also share the error message ?

Thanks.

It is the same one I posted in this thread and when I started this thread.

FATAL 2017-06-21 10:28:52,592 [1    ] Abp.AbpBootstrapper                      - 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)
Answer

<cite>ismcagdas: </cite> Hi @exlnt,

Can you first try to clear cookies and then try again ? If this does not fix your problem, please send your project to <a href="mailto:[email protected]">[email protected]</a>.

Thanks.

Ok, that worked! Thanks!

Answer

Can someone from support team please respond to this issue?

I just repeated all my steps from 1 again. This time I added one very simple entity that has no FKs. I tried to scaffold the migration for this table and ran into the error.

Here is my simple entity:

public partial class InvCtry
    {
        public InvCtry()
        {
        }

        public string CtryIsoAlphaCd { get; set; }
        public string CtryNm { get; set; }
        public string CtrySrceCd { get; set; }
        public string EnblIn { get; set; }

    }

I tried again with my template this morning and no matter what kind of custom entity I add into the solution I keep getting the same error.

DEBUG 2017-06-21 10:28:50,191 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - MyCo.MyApp.Web.Views.Shared.Components.TenantChange.TenantChangeViewModel
FATAL 2017-06-21 10:28:52,592 [1    ] Abp.AbpBootstrapper                      - 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.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, ServiceProvider provider)
   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.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServiceCollectionExtensions.&lt;&gt;c.&lt;AddQuery&gt;b__1_3(IServiceProvider p)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, ServiceProvider provider)
   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.EntityFrameworkCore.Infrastructure.AccessorExtensions.GetService[TService](IInfrastructure`1 accessor)
   at Microsoft.EntityFrameworkCore.DbContext.get_QueryProvider()
   at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.&lt;.ctor&gt;b__3_0()
   at Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value()
   at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()
   at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
   at MyCo.MyApp.EntityFrameworkCore.Seed.Host.DefaultEditionCreator.CreateEditions() in C:\GIT-MyApp-RA5\MyApp-.net-core\MyCo.MyDept.MyApp\src\MyCo.MyApp.EntityFrameworkCore\EntityFrameworkCore\Seed\Host\DefaultEditionCreator.cs:line 24
   at MyCo.MyApp.EntityFrameworkCore.Seed.Host.DefaultEditionCreator.Create() in C:\GIT-MyApp-RA5\MyApp-.net-core\MyCo.MyDept.MyApp\src\MyCo.MyApp.EntityFrameworkCore\EntityFrameworkCore\Seed\Host\DefaultEditionCreator.cs:line 19
   at MyCo.MyApp.EntityFrameworkCore.Seed.Host.InitialHostDbBuilder.Create() in C:\GIT-MyApp-RA5\MyApp-.net-core\MyCo.MyDept.MyApp\src\MyCo.MyApp.EntityFrameworkCore\EntityFrameworkCore\Seed\Host\InitialHostDbBuilder.cs:line 14
   at MyCo.MyApp.EntityFrameworkCore.Seed.SeedHelper.SeedHostDb(MyAppDbContext context) in C:\GIT-MyApp-RA5\MyApp-.net-core\MyCo.MyDept.MyApp\src\MyCo.MyApp.EntityFrameworkCore\EntityFrameworkCore\Seed\SeedHelper.cs:line 25
   at MyCo.MyApp.EntityFrameworkCore.Seed.SeedHelper.WithDbContext[TDbContext](IIocResolver iocResolver, Action`1 contextAction) in C:\GIT-MyApp-RA5\MyApp-.net-core\MyCo.MyDept.MyApp\src\MyCo.MyApp.EntityFrameworkCore\EntityFrameworkCore\Seed\SeedHelper.cs:line 41
   at MyCo.MyApp.EntityFrameworkCore.Seed.SeedHelper.SeedHostDb(IIocResolver iocResolver) in C:\GIT-MyApp-RA5\MyApp-.net-core\MyCo.MyDept.MyApp\src\MyCo.MyApp.EntityFrameworkCore\EntityFrameworkCore\Seed\SeedHelper.cs:line 17
   at MyCo.MyApp.EntityFrameworkCore.MyAppEntityFrameworkModule.PostInitialize() in C:\GIT-MyApp-RA5\MyApp-.net-core\MyCo.MyDept.MyApp\src\MyCo.MyApp.EntityFrameworkCore\EntityFrameworkCore\MyAppEntityFrameworkModule.cs:line 40
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Abp.AbpBootstrapper.Initialize()

I took the error text from the log file this time and it seems to be pointing to the tenant view model?

MyCo.MyApp.Web.Views.Shared.Components.TenantChange.TenantChangeViewModel
Showing 141 to 150 of 316 entries