Activities of "stefan@ppibv.nl"

Hey there.

Our team has recently come across a very peculiar issue we can't really find anything about, and don't know what caused it for all of us simultaniously, or how to fix it again. Currently, whenever we'd create a new CRUD object (for example 'Group') via our ABP Suite. We get these %% validations %% on line 25 and 40 in our GroupManager.cs that gets generated, and it then subsequently fails to generate the entire CRUD in the project because of this.

But when we remove these %% validations %% afterwards, then no errors are shown. If we then run the save and generate again, then the %% validations %% and errors return and we're back to square 1.

We have found that we can get around this (sometimes) by quickly removing these %% validations %% lines after we have hit the save generate button, and that sometimes seems to help in generating the files. But sadly that's a big if, whether it works or not. This way, we can't really make new CRUD pages via the suite, and we're not too sure how we could fix this issue.

  • ABP Framework version: v6.0.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes (MVC)
  • Exception message and stack trace: We get these error(see images):
  • Steps to reproduce the issue:" Create a simple object to create (see images below) And simply save and generate:

Hi @stefan,

Please be sure that the ABP Suite version is equal to Volo.Abp.Commercial.SuiteTemplates package reference version in your project. It seems like The ABP Suite version is older.


For your info: If you want to edit the code templates, go to templates page in ABP Suite, find the related template and edit it.
For example, in this scenario you can find Server.Domain.Manager.txt and remove %%validations%% line for a quick fix.

This seems to have solved the issue for us internally, thank you for the support.

Hey there.

Our team has recently encountered a peculiar issue we're not too sure what causes it or how to fix it.

Sometimes, during development, our Javascript will refuse to update. We most notably get this issue when updating our editModal.js. When we make changes, save, and run the project, the JS file seems to be 'stuck' on a previous version of the file.

Sometimes this issue is suddenly resolved by simply restarting visual studio. But sometimes, even reloading our PC and removing cookies and cache doesn't seem to fix the issue. It seems to occur at total random, and dissappear at random as well.

But when we manually enter the path of the file through the URL. It seems that it has the updated version, but yet, the editModal.cshtml still seems to use the previous version.

ABP Framework version: v6.0.2 UI type: MVC DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): yes (MVC) Exception message and stack trace: We're not too sure what causes the problem.

We're not to sure how to fix this issue, and our progress is really stalling because of it. Sadly I am not able to provide any more information in terms of error codes or messages on this issue as of now.

I hope to have informed you enough this way. If there are any further questions, I would gladly answer them.

hi

It could be browser cache or you can try to use hot reload.

https://learn.microsoft.com/en-us/aspnet/core/test/hot-reload?view=aspnetcore-7.0

Hey,

Thank you for taking the time to read our question, but I'm afraid this hasn't worked for us. We've tried to clear browser cache and cookies multiple times, also in conjunction with hot reload, but this also didn't really seem to fix the issue we have.

I wish I could give a more solid example of when this occurs or what changes. But it really seems to occur at total random, and we have no really set in stone solution to fix when this occurs, which is for us the most problematic part of the issue.

Hello,

This is what we have in our LocationManager (though this does seem to occur in our other modals as well)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Domain.Services;
using Volo.Abp.Data;
using PlanPlanInternet.Zwemscore.GroupSettings;

namespace PlanPlanInternet.Zwemscore.Locations {
    public class LocationManager : DomainService {
        private readonly ILocationRepository _locationRepository;

        public LocationManager(ILocationRepository locationRepository) {
            _locationRepository = locationRepository;
        }

        public async Task<Location> CreateAsync(
        string name, string street, string housenumber, string housenumberSuffix, string postalcode, string city, string phonenumber, string emailaddress) {
            var location = new Location(
             GuidGenerator.Create(),
             name, street, housenumber, housenumberSuffix, postalcode, city, phonenumber, emailaddress
             );

            return await _locationRepository.InsertAsync(location);
        }

        public async Task<Location> UpdateAsync(
            Guid id,
            string name, string street, string housenumber, string housenumberSuffix, string postalcode, string city, string phonenumber, string emailaddress, [CanBeNull] string concurrencyStamp = null
        ) {
            var queryable = await _locationRepository.GetQueryableAsync();
            var query = queryable.Where(x => x.Id == id);

            var location = await AsyncExecuter.FirstOrDefaultAsync(query);

            location.Name = name;
            location.Street = street;
            location.Housenumber = housenumber;
            location.HousenumberSuffix = housenumberSuffix;
            location.Postalcode = postalcode;
            location.City = city;
            location.Phonenumber = phonenumber;
            location.Emailaddress = emailaddress;

            location.SetConcurrencyStampIfNotNull(concurrencyStamp);
            return await _locationRepository.UpdateAsync(location);
        }

        public async Task<List<Location>> GetAllAsync() {
            return await _locationRepository.GetListAsync();
        }
    }
}

We have changed nothing about the way JS loads into our modal from the default way that ABP Suite generates the modals and js scripts.

Which if I'm reading it correctly, means that the Index.js that is loaded into the page, which then subsequently loads the Edit.js if I'm not mistaken?

But when we manually enter the path of the file through the URL. It seems that it has the updated version, but yet, the editModal.cshtml still seems to use the previous version.

hi

Can you share your abp.ModalManager code?

How do you load js file?

Oh I'm sorry, I have sent the LocationManager.cs code but have called it the LocationModal by mistake... But that is the code that you wanted based on this question?

I will change my mistake in my previous answer

Hey there.

I have recentely come across an error that's bugged me for a bit and I sadly can't seem to really get rid of either. I have recently tried to add the Identity module and the Account module to my project via the Suite. But ever since doing so, I cannot seem to run my project anymore. It shows me an error: 'Unable to connect web server' But when I checkout to a different branch where I have not added these modules, everything works fine.

I am unsure how to fix this issue, and it's really slowed my project down to a halt, so this is rather urgent.

  • ABP Framework version: v6.0.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes (MVC)
  • Exception message and stack trace: I get this error: And this is the exception in the console: System.IO.FileLoadException: Could not load file or assembly 'Volo.Abp.Account.Pro.Public.Web, Version=6.0.2.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (0x80131040) File name: 'Volo.Abp.Account.Pro.Public.Web, Version=6.0.2.0, Culture=neutral, PublicKeyToken=null' at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder1 derivedAttributes) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at System.Attribute.GetCustomAttributes(MemberInfo element, Boolean inherit) at Volo.Abp.Modularity.AbpModuleHelper.FindDependedModuleTypes(Type moduleType) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.FindAllModuleTypes(Type startupModuleType, ILogger logger) at Volo.Abp.Modularity.ModuleLoader.FillModules(List1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.AbpApplicationBase.LoadModules(IServiceCollection services, AbpApplicationCreationOptions options) 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.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action`1 optionsAction) at PlanPlanInternet.Zwemscore.Web.Program.Main(String[] args) in C:\Development\PlanPlanInternet.Zwemscore\src\PlanPlanInternet.Zwemscore.Web\Program.cs:line 37

On line 37 of Program.cs is this line of code: await builder.AddApplicationAsync&lt;ZwemscoreWebModule&gt;();

  • Steps to reproduce the issue:" Use Abp Suite to create new project and add source code for Account Module and identity and try to run the solution

Hello, this would be the code that loads the JS in index.cshtml:

@section scripts
{
    <abp-script src="/Pages/Locations/index.js" />
}

And this is index.js:

var editModal = new abp.ModalManager({
        viewUrl: abp.appPath + "Locations/EditModal",
        scriptUrl: "/Pages/Locations/editModal.js",
        modalClass: "locationEdit"
    });

I hope this is the info you've been looking for.

Hello,

Thank you for taking the time to try and reproduce the error, sadly. It seems it's not a consistent problem whenever I create a new project either.

Would it also be okay for me to share our current project which gives the error consitantly? Would there be any information I would need to remove/blurr out before I send it over?

I had the same problem with the version 7.0.1.0. I found a workaround to solve this issue.

  • Go to Volo.Abp.Account.Pro.Public.Web.csproj
  • Check if this is located in your project definition or add it if it's not there. ** <Version>6.0.2.0</Version>**
  • Recompile

Check if all the Volo.Abp.Account.Pro.XXXX projects have the tag <Version></Version> inside of it.

I wanted to report this some weeks ago but i only few support count so i can't take a risk to report some bugs & solutions. I found 2 more related.

Yes thank you so much! This seems to have fixed the issue for me.

Showing 1 to 10 of 14 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11