Activities of "EngincanV"

Hi, can you please check our Change Microservice project to use MongoDB Provider documentation and follow the described steps, and see if it works for you? If you stuck at any point, please let me know.

Best regards.

Hi, in your data seeder, you should use ICurrentTenant.Change method to change the current tenant, otherwise, it will see the current tenant as host. Please refer to https://abp.io/docs/latest/framework/architecture/multi-tenancy#change-the-current-tenant, and if you can't work it out, then please share the data seed contributor so I can better assist you.

Best regards.

Note we have main app and HR module, when we generate entity int HR module gave me that error,
but when generate entity in main app, its work well without any errors

I will deeply investigate this, but ideally it should not give build error because as written in the logs it runs the following command:

dotnet build "C:\Mywork\ManarahTech\NeuErp\modules\HR"  

I'll let you know after checking it deeply.

Regards.

Hello bro.

It’s working well now. The issue is that the test project is unloaded because it targets .NET 7.0, which is not installed on our system.

Okay, great to hear that. Closing the issue, since your problem is resolved.

Best regards.

Hi @EngincanV, I understand that I can wrap each endpoint in a try-catch block to handle unexpected errors, but that would be time-consuming for us. Is there a way to centrally handle unexpected errors and return a specific error code and message?

ABP already has a built-in mechanism for global exception handling so you don’t have to wrap each endpoint in a try-catch block. ABP automatically handles all exceptions and sends a standard formatted error message to the client for an API/AJAX request.

But in your case, since it does not met the exception handling criteria it's not handled by ABP. So, you can subscribe to all of the thrown exceptions by implementing the ExceptionSubscriber base class, as described here. You can apply your own logic for the thrown exceptions.

Note we have main app and HR module, when we generate entity int HR module gave me that error, but when generate entity in main app, its work well without any errors

I will deeply investigate this, but ideally it should not give build error because as written in the logs it runs the following command:

dotnet build "C:\Mywork\ManarahTech\NeuErp\modules\HR"

I'll let you know after checking it deeply.

Regards.

You mean remove our solution from abp suite ?

Yes, and then re-add it again. This will refresh the solution info for your project. The pre-generated entity metadata will not be removed, so it will not create any problem.

Regards.

Hi @berkansasmaz,

Thank you for your response, and I apologize for my delayed reply. I needed to update my staging environment to verify whether the issue was resolved.

Unfortunately, after implementing your recommendations, the problem still persists. The session is still lost after closing the tab on mobile browsers.

Do you have any additional suggestions or troubleshooting steps I should try?

Best regards,

Interestingly, the same issue doesn't occur on desktop browsers like Chrome on PC, where the session persists as expected. This could be tied to how cookies, session storage, or authentication tokens are handled differently on mobile browsers compared to desktops.

Can you check in your App.razor file there is a code as stated in https://abp.io/docs/9.0/release-info/migration-guides/abp-8-2-blazor-web-app#mycompanyname-myprojectname-blazor-webapp-tiered-and-mycompanyna

Hi, I have tried to added following code as you recommended but still the same error. If I deploy directly on nginx service it doesn't has this error. Configure<AbpAntiForgeryOptions>(options => { options.TokenCookie.SecurePolicy = CookieSecurePolicy.None; });

thanks, Dharma

Hi, thanks for the prompt answer. I will check and write you back asap.

I'm sorry, now you can view log file

Thanks, I have reviewed the log file, and the problem seems to be that ABP Suite tried to build your solution with the following command:

dotnet build "C:\Mywork\ManarahTech\NeuErp\modules\HR"

But the returned build result was succeeded: false, this is the reason why you get that error message.


There might be two reasons for this problem:

  1. When ABP Suite runs the related command, there might be an already used assembly, so this causes the build as unsuccessfull.
  2. You might be moved your module or solution to a different directory.

To fix it, you can ensure your application is not working and try again. Or if it still continues, you can remove your solution and then re-add it and try to generate code and it should be working as expected then.

Regards.

thanks your answer, I checked the link you gave me and this one https://abp.io/docs/latest/suite/editing-templates

but could find the instruction on how to use these variables:

%%%%item-dto-properties%%%%item-dto-np-properties%%%%item-dto-nc-properties

this is Server.AppService.ItemCreateDto.txt and I am trying to update it to including my RegularExpression, i.e.:

[RegularExpression(@"^[^&lt;&gt;'""`]*$", ErrorMessage = "Invalid characters detected")] 
public new string Address { get; set; } 

using System; using System.ComponentModel.DataAnnotations; using System.Collections.Generic;

namespace %%solution-namespace%%%%<if:ApplicationContractsNotExists>%%%%.AppServices%%</if:ApplicationContractsNotExists>%%.%%entity-namespace%% { public %%custom-code-abstract-modifier%% class %%entity-name%%CreateDto%%custom-code-base%% { %%child-master-entity-primary-key%%%%item-dto-properties%%%%item-dto-np-properties%%%%item-dto-nc-properties%% } }

Hi, unfortunately, the related attributes (including the regex attribute) are generated in the code side, and ABP Suite does not allow you to directly update them via editing templates.

So, the best option you have is to add the related property name to your ItemDto.extended.cs class with the relevant attribute and manually override the related property in the generated ABP Suite dto class (of course for doing that you should generate your entity with custom code support):

public class BookDto : BookBaseDto
{
        [RegularExpression(@"^[^&lt;&gt;'""`]*$", ErrorMessage = "Invalid characters detected")]
        public new string Address { get; set; }
}

The variables that you are looking for (%%%%item-dto-properties%%%%item-dto-np-properties%%%%item-dto-nc-properties) are generated on the code side and they are just related properties that should be listed on the relevant DTO classes.)

Showing 471 to 480 of 1371 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 04, 2025, 06:41