Starts in:
2 DAYS
9 HRS
30 MIN
26 SEC
Starts in:
2 D
9 H
30 M
26 S

Activities of "Gary"

  • UI type: MVC This is a revisited issue that is preventing me from progressing, which I thought I had a workaround for.

My Style and script tags fail to work. They show up without errors, and point to the correct places but they fail to load. Eg:

My workaround has been to clone multiple invocations of ModalManager in the index.js and link them that way. But this is getting nasty.

//CreateModel start
var createModal = new abp.ModalManager({
    viewUrl: abp.appPath + "Storages/CreateModal",
    scriptUrl: "/Pages/Storages/createModal.js",
    modalClass: "storageCreate"
});

var createModal = new abp.ModalManager({
    viewUrl: abp.appPath + "Storages/CreateModal",
    scriptUrl: "/Pages/Storages/customCreate.js",
    modalClass: "storageCreate"
});

var createModal = new abp.ModalManager({
    viewUrl: abp.appPath + "Storages/CreateModal",
    scriptUrl: "/scripts/msgindex.js",
    modalClass: "storageCreate"
});
var createModal = new abp.ModalManager({
    viewUrl: abp.appPath + "Storages/CreateModal",
    scriptUrl: "/scripts/datastream.js",
    modalClass: "storageCreate"
});
var createModal = new abp.ModalManager({
    viewUrl: abp.appPath + "Storages/CreateModal",
    scriptUrl: "/scripts/msgreader.js",
    modalClass: "storageCreate"
});
var createModal = new abp.ModalManager({
    viewUrl: abp.appPath + "Storages/CreateModal",
    scriptUrl: "/scripts/multipartform.js",
    modalClass: "storageCreate"
});

var createModal = new abp.ModalManager({
    viewUrl: abp.appPath + "Storages/CreateModal",
    scriptUrl: "/libs/dropzone/dropzone.js",
    modalClass: "storageCreate"
});

//createmodel end`

These then work But present issues further downstream when trying to load this from other places

I have tried and followed everything and at a total loss as to why this happens. Obviously there is something wrong with my configuration, but I have no idea what it can be.

  • ABP Framework version: vX.X.X
  • UI type: MVC Sorry for this silly question but I have spent far too long getting this to work.

Trying to impliment drag and drop functionality to a Modal and need to import a couple of files.

I have read the section on bundling but that was beyond what I needed.

In my section Scripts I have added a wide variety of formats, none work, except for the first one with works happily throughout my project I also tried it in libs, and in the module.

Nothing appears in Dev Tools to show they are being picked up either.

They are in the libs AND in the Storage

the ones in the Storages folder are being recognised in config

<ItemGroup> <Content Update="Pages\Storages\basic.css"> <ExcludeFromSingleFile>true</ExcludeFromSingleFile> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </Content> <Content Update="Pages\Storages\basic.min.css"> <ExcludeFromSingleFile>true</ExcludeFromSingleFile> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </Content> <Content Update="Pages\Storages\dropzone.css"> <ExcludeFromSingleFile>true</ExcludeFromSingleFile> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </Content> <Content Update="Pages\Storages\dropzone.min.css"> <ExcludeFromSingleFile>true</ExcludeFromSingleFile> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </Content>

Help!

  • UI type: MVC
  • DB provider: EF Core
  • **Tiered (MVC)

When trying to run the program I am getting the folowing error in the console. If I create a branch from a few days back and run it it works OK. Since then I can't see anything in the diff that might have lead to this error.

Uncaught TypeError: Cannot read property 'educatePlus' of undefined at HTMLDocument.<anonymous> (index.js?_v=637490254128026448:4) Its crashing on var prospectusService = window.enform.educatePlus.prospectuses.prospectus; at the educatePlus part. Yet if I type it out the intellisence still shows it as valid.

Here is the error

The log file shows what I think is the error below in multiple entries.

at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context) 2021-02-16 13:38:43.489 +13:00 [DBG] Executed AbpApplicationConfigurationAppService.GetAsync(). 2021-02-16 13:38:43.532 +13:00 [INF] Request finished HTTP/1.1 GET http://localhost:44382/Abp/ServiceProxyScript - - - 500 - text/plain 1540.5507ms

at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context) 2021-02-16 13:38:43.718 +13:00 [INF] Request finished HTTP/1.1 GET http://localhost:44382/Abp/ServiceProxyScript - - - 500 - text/plain 114.0831ms

at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context) 2021-02-16 13:38:52.692 +13:00 [INF] Request finished HTTP/1.1 GET http://localhost:44382/Abp/ServiceProxyScript - - - 500 - text/plain 243.5808ms

  • UI type: / MVC

In the CreateModel I need to pass across data to prepopulated the fields. I need to do this after the form has been generated so it can be filled with data from existing students that are loaded up on matching with the new student details. This catches returning students.

I am doing this with Jquery and abp.ajax and it works well for just the input fields like this.

$('#Prospectus_Suburb').val(data2.suburb);

But I cannot find a way to pass data into an ABP Dropdown Select or Date Tag-helper using jquery. I have tried all the methods I have found for pasing to a bootstrap Select, and none work. The select remains stubbonly empty every time. This occurs for all selects as well, about 6.

Here is one of the Dropdowns as an example

<abp-select asp-for="Prospectus.EthnicityId" asp-items="Model.EthnicityLookupList" label="@L["Ethnicity"].Value" />

Of course it works in the editModel, but I cannot see any exposed way to get the data in in the CreateModel.

I have set it up to pass in both the Option Name or the stored Guid for value I need to show.

Basiclly I need to to look like the editmodel Dropdown with the name in the selected box and the value ready to be saved.

Cheers

  • ABP Framework version: 4.1.1
  • UI type: MVC
  • DB provider: EF Core
  • **Tiered (MVC)
  • Exception message and stack trace:AutoMapperMappingException: Missing type map configuration or unsupported mapping.
  • Steps to reproduce the issue: On create I want to move the data in the Prospectus table to the Student table. The Prospectus table is a subset of the Student table.

In the MapperProfile I created the map `//map the prospectus to the student

        CreateMap<ProspectusCreateDto, Student>().IgnoreFullAuditedObjectProperties().Ignore(x =>      x.ExtraProperties).Ignore(x => x.ConcurrencyStamp).Ignore(x => x.Id).Ignore(x => x.TenantId);`
        
        

In my ProspectusAppService class I modified the Create method

      public virtual async Task<ProspectusDto> CreateAsync(ProspectusCreateDto input)
        {
            var prospectus = ObjectMapper.Map<ProspectusCreateDto, Prospectus>(input);
            prospectus.TenantId = CurrentTenant.Id;

            //get the Position role from the position Id
            var SelectedPosition = _positionRepository.AsQueryable()
                    .Where(p => p.Id == prospectus.PositionId)
                    .Select(p => new { Role = p.Role, Id = p.Id }).FirstOrDefault();

            if (SelectedPosition.Role == "Student") //student
            {
                var student = ObjectMapper.Map<ProspectusCreateDto, Student>(input);
                student.TenantId = CurrentTenant.Id;

                //save it to the student table
                await _studentRepository.InsertAsync(student, autoSave: true);

                //delete it from the prospectus table if it exists
                if (prospectus.Id != default(Guid))
                {
                    await DeleteAsync(prospectus.Id);
                }

            }
            else
            {
                prospectus = await _prospectusRepository.InsertAsync(prospectus, autoSave: true);
            }
            return ObjectMapper.Map<Prospectus, ProspectusDto>(prospectus);
        }

At var student = ObjectMapper.Map<ProspectusCreateDto, Student>(input);

I get

All added lookup fields refuse to display any data. The example below is 1 of three I have used.

The setup for navigation is

Question

Generating a new entity with suite 4.02 works OK. However the entry added to the menu in EducatePlusMenuContributor.cs fails to show on the menu itself. I have worked at rearranging the entries, changing the order numbers, Clean and rebuild the project, but fail to get a new menu to show.

I suspect if (await context.IsGrantedAsync(EducatePlusPermissions.TestForMenus.Default)) if not returning true, what can I add to the else statement to get an error message. All entities are the same multitenanted.

Example menu items

 if (await authorizationService.IsGrantedAsync(EducatePlusPermissions.Dashboard.Tenant))
            {
                //TenantDashboard
                context.Menu.AddItem(
                    new ApplicationMenuItem(
                        EducatePlusMenus.TenantDashboard,
                        l["Menu:Dashboard"],
                        "/Dashboard",
                        icon: "fa fa-line-chart",
                        order: 4
                    )
                );
            }
            if (await context.IsGrantedAsync(EducatePlusPermissions.Ethnicities.Default))
            {
                context.Menu.AddItem(
                    new ApplicationMenuItem(
                        "EducatePlus.Ethnicities",
                        l["Menu:Ethnicities"],
                        url: "/Ethnicities",
                        icon: "fa fa-file-alt",
                         order: 12)
                );
            }

this one won't show,

            if (await context.IsGrantedAsync(EducatePlusPermissions.TestForMenus.Default))
            {
                context.Menu.AddItem(
                    new ApplicationMenuItem(
                        "EducatePlus.TestForMenus",
                        l["Menu:TestForMenus"],
                        url: "/TestForMenus",
                        icon: "fa fa-file-alt",
                         order: 13)
                );
            }

Actual output

Question

Please delete

Need help on this error. I suspect a module is the wrong version but not sure.

TypeLoadException: Method 'get_ExtraProperties' in type 'Volo.Abp.LanguageManagement.Language' from assembly 'Volo.Abp.LanguageManagement.Domain, Version=2.9.0.0' does not have an implementation.

The program stops at services.AddApplication<EducatePlusWebModule>();

public class Startup { public void ConfigureServices(IServiceCollection services) { services.AddApplication<EducatePlusWebModule>(); }

  • ABP Framework version: vX.X.X
  • UI type: MVC
  • **Tiered (MVC) Tiered
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Volo.Abp.AbpInitializationException HResult=0x80131500 Message=An error occurred during PreConfigureServices phase of the module Volo.Abp.LanguageManagement.LanguageManagementDomainModule, Volo.Abp.LanguageManagement.Domain, Version=2.9.0.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. Source=Volo.Abp.Core StackTrace: at Volo.Abp.AbpApplicationBase.ConfigureServices() at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplication[TStartupModule](IServiceCollection services, Action`1 optionsAction) at Enform.EducatePlus.Web.Startup.ConfigureServices(IServiceCollection services) in C:\Dropbox\Enform\EnformNew2\src\Enform.EducatePlus.Web\Startup.cs:line 11 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.

Inner Exception 1: TypeLoadException: Method 'get_ExtraProperties' in type 'Volo.Abp.LanguageManagement.Language' from assembly 'Volo.Abp.LanguageManagement.Domain, Version=2.9.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

Stack Trace Volo.Abp.AbpInitializationException HResult=0x80131500 Message=An error occurred during PreConfigureServices phase of the module Volo.Abp.LanguageManagement.LanguageManagementDomainModule, Volo.Abp.LanguageManagement.Domain, Version=2.9.0.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. Source=Volo.Abp.Core StackTrace: at Volo.Abp.AbpApplicationBase.ConfigureServices() at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action`1 optionsAction) at Volo.Abp.AbpApplicationFa

Here are all my packages....

PM> dotnet list package Project 'Enform.EducatePlus.Domain' has the following package references [netcoreapp3.1]: Top-level Package Requested Resolved

Volo.Abp.AuditLogging.Domain 3.3.2 3.3.2
Volo.Abp.BackgroundJobs.Domain 3.3.2 3.3.2
Volo.Abp.FeatureManagement.Domain 3.3.2 3.3.2
Volo.Abp.Identity.Domain 3.3.2 3.3.2
Volo.Abp.IdentityServer.Domain 3.3.2 3.3.2
Volo.Abp.LanguageManagement.Domain 2.9.0 2.9.0
Volo.Abp.LeptonTheme.Management.Domain 2.9.0 2.9.0
Volo.Abp.PermissionManagement.Domain.Identity 3.3.2 3.3.2
Volo.Abp.PermissionManagement.Domain.IdentityServer 3.3.2 3.3.2
Volo.Abp.SettingManagement.Domain 3.3.2 3.3.2
Volo.Abp.TextTemplateManagement.Domain 2.9.0 2.9.0
Volo.Saas.Domain 2.9.0 2.9.0

Project 'Enform.EducatePlus.Application' has the following package references [netcoreapp3.1]: Top-level Package Requested Resolved

Volo.Abp.Account.Pro.Admin.Application 2.9.0 2.9.0
Volo.Abp.Account.Pro.Public.Application 2.9.0 2.9.0
Volo.Abp.AuditLogging.Application 2.9.0 2.9.0
Volo.Abp.FeatureManagement.Application 3.3.2 3.3.2
Volo.Abp.Identity.Pro.Application 2.9.0 2.9.0
Volo.Abp.IdentityServer.Application 2.9.0 2.9.0
Volo.Abp.LanguageManagement.Application 2.9.0 2.9.0
Volo.Abp.LeptonTheme.Management.Application 2.9.0 2.9.0
Volo.Abp.PermissionManagement.Application 3.3.2 3.3.2
Volo.Abp.TextTemplateManagement.Application 2.9.0 2.9.0
Volo.Saas.Host.Application 2.9.0 2.9.0

Project 'Enform.EducatePlus.EntityFrameworkCore' has the following package references [netcoreapp3.1]: Top-level Package Requested Resolved

Volo.Abp.AuditLogging.EntityFrameworkCore 3.3.2 3.3.2
Volo.Abp.BackgroundJobs.EntityFrameworkCore 3.3.2 3.3.2
Volo.Abp.EntityFrameworkCore.SqlServer 3.3.2 3.3.2
Volo.Abp.FeatureManagement.EntityFrameworkCore 3.3.2 3.3.2
Volo.Abp.Identity.EntityFrameworkCore 3.3.2 3.3.2
Volo.Abp.IdentityServer.EntityFrameworkCore 3.3.2 3.3.2
Volo.Abp.LanguageManagement.EntityFrameworkCore 2.9.0 2.9.0
Volo.Abp.PermissionManagement.EntityFrameworkCore 3.3.2 3.3.2
Volo.Abp.SettingManagement.EntityFrameworkCore 3.3.2 3.3.2
Volo.Abp.TextTemplateManagement.EntityFrameworkCore 2.9.0 2.9.0
Volo.Saas.EntityFrameworkCore 2.9.0 2.9.0

Project 'Enform.EducatePlus.Web' has the following package references [netcoreapp3.1]: Top-level Package Requested Resolved

BeetleX.Redis 1.0.1 1.0.1
IdentityServer4.AccessTokenValidation 3.0.1 3.0.1
Serilog.Extensions.Hosting 3.1.0 3.1.0
Serilog.Sinks.File 4.1.0 4.1.0
Swashbuckle.AspNetCore 5.6.3 5.6.3
Volo.Abp.Account.Pro.Admin.Web 2.9.0 2.9.0
Volo.Abp.Account.Pro.Public.Web.IdentityServer 2.9.0 2.9.0
Volo.Abp.AspNetCore.Authentication.JwtBearer 3.3.2 3.3.2
Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton 2.9.0 2.9.0
Volo.Abp.AuditLogging.Web 2.9.0 2.9.0
Volo.Abp.Autofac 3.3.2 3.3.2
Volo.Abp.Caching 4.0.0 4.0.0
Volo.Abp.FeatureManagement.Web 3.3.2 3.3.2
Volo.Abp.Identity.Pro.Web 2.9.0 2.9.0
Volo.Abp.IdentityServer.Web 2.9.0 2.9.0
Volo.Abp.LanguageManagement.Web 2.9.0 2.9.0
Volo.Abp.LeptonTheme.Management.Web 2.9.0 2.9.0
Volo.Abp.TextTemplateManagement.Web 2.9.0 2.9.0
Volo.Saas.Host.Web 2.9.0 2.9.0

Project 'Enform.EducatePlus.Domain.Shared' has the following package references [netstandard2.0]: Top-level Package Requested Resolved

NETStandard.Library (A) [2.0.3, ) 2.0.3
Volo.Abp.AuditLogging.Domain.Shared 3.3.2 3.3.2
Volo.Abp.BackgroundJobs.Domain.Shared 3.3.2 3.3.2
Volo.Abp.Commercial.SuiteTemplates 2.9.0 2.9.0
Volo.Abp.FeatureManagement.Domain.Shared 3.3.2 3.3.2
Volo.Abp.Identity.Domain.Shared 3.3.2 3.3.2
Volo.Abp.IdentityServer.Domain.Shared 3.3.2 3.3.2
Volo.Abp.LanguageManagement.Domain.Shared 2.9.0 2.9.0
Volo.Abp.LeptonTheme.Management.Domain.Shared 2.9.0 2.9.0
Volo.Abp.PermissionManagement.Domain.Shared 3.3.2 3.3.2
Volo.Abp.SettingManagement.Domain.Shared 3.3.2 3.3.2
Volo.Abp.TextTemplateManagement.Domain.Shared 2.9.0 2.9.0
Volo.Saas.Domain.Shared 2.9.0 2.9.0

Project 'Enform.EducatePlus.Application.Contracts' has the following package references [netstandard2.0]: Top-level Package Requested Resolved

NETStandard.Library (A) [2.0.3, ) 2.0.3
Volo.Abp.Account.Pro.Admin.Application.Contracts 2.9.0 2.9.0
Volo.Abp.Account.Pro.Public.Application.Contracts 2.9.0 2.9.0
Volo.Abp.AuditLogging.Application.Contracts 2.9.0 2.9.0
Volo.Abp.FeatureManagement.Application.Contracts 3.3.2 3.3.2
Volo.Abp.Identity.Pro.Application.Contracts 2.9.0 2.9.0
Volo.Abp.IdentityServer.Application.Contracts 2.9.0 2.9.0
Volo.Abp.LanguageManagement.Application.Contracts 2.9.0 2.9.0
Volo.Abp.LeptonTheme.Management.Application.Contracts 2.9.0 2.9.0
Volo.Abp.ObjectExtending 3.3.2 3.3.2
Volo.Abp.PermissionManagement.Application.Contracts 3.3.2 3.3.2
Volo.Abp.TextTemplateManagement.Application.Contracts 2.9.0 2.9.0
Volo.Saas.Host.Application.Contracts 2.9.0 2.9.0

Project 'Enform.EducatePlus.HttpApi' has the following package references [netcoreapp3.1]: Top-level Package Requested Resolved

Volo.Abp.Account.Pro.Admin.HttpApi 2.9.0 2.9.0
Volo.Abp.Account.Pro.Public.HttpApi 2.9.0 2.9.0
Volo.Abp.AuditLogging.HttpApi 2.9.0 2.9.0
Volo.Abp.FeatureManagement.HttpApi 3.3.2 3.3.2
Volo.Abp.Identity.Pro.HttpApi 2.9.0 2.9.0
Volo.Abp.IdentityServer.HttpApi 2.9.0 2.9.0
Volo.Abp.LanguageManagement.HttpApi 2.9.0 2.9.0
Volo.Abp.LeptonTheme.Management.HttpApi 2.9.0 2.9.0
Volo.Abp.PermissionManagement.HttpApi 3.3.2 3.3.2
Volo.Abp.TextTemplateManagement.HttpApi 2.9.0 2.9.0
Volo.Saas.Host.HttpApi 2.9.0 2.9.0

Project 'Enform.EducatePlus.HttpApi.Client' has the following package references [netstandard2.0]: Top-level Package Requested Resolved

NETStandard.Library (A) [2.0.3, ) 2.0.3
Volo.Abp.Account.Pro.Admin.HttpApi.Client 2.9.0 2.9.0
Volo.Abp.AuditLogging.HttpApi.Client 2.9.0 2.9.0
Volo.Abp.FeatureManagement.HttpApi.Client 3.3.2 3.3.2
Volo.Abp.Identity.Pro.HttpApi.Client 2.9.0 2.9.0
Volo.Abp.IdentityServer.HttpApi.Client 2.9.0 2.9.0
Volo.Abp.LanguageManagement.HttpApi.Client 2.9.0 2.9.0
Volo.Abp.LeptonTheme.Management.HttpApi.Client 2.9.0 2.9.0
Volo.Abp.PermissionManagement.HttpApi.Client 3.3.2 3.3.2
Volo.Abp.TextTemplateManagement.HttpApi.Client 2.9.0 2.9.0
Volo.Saas.Host.HttpApi.Client 2.9.0 2.9.0

Showing 1 to 9 of 9 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06