Questions tagged [aspnetboilerplate]
Use this tag to ask questions about the previous ASP.NET Boilerplate, a web applications framework. Bug reports and feature requests should be posted to GitHub. For the successor use [tag:abp]
1,364
questions
0
votes
0
answers
16
views
ABP Appservice Authorized by default
We're using ABP 7.3
We'd like for all classes inheriting from the [project]AppServiceBase to be authorized by default so their methods are only available to users which are logged in. There are some ...
0
votes
0
answers
13
views
ABP Framework: "ActivatorChain": "Castle.Proxies.InboundDocumentServiceProxy -> RCM.PatientManagement.PatientOptimization.PatientDocumentService"
I have two projects Patient and Platform in ABP Framework. An Exception was thrown when calling the DocumentService in Patient in Platform Project InboundDocumentService. But whenever the service in ...
0
votes
0
answers
36
views
Token of inactive user still works
We're currently using ABP 7.3, .NET 6
I found this article
https://pulsesecurity.co.nz/advisories/aspnetboilerplate-jwt
It mentions that a token is still valid, even after the user has been ...
0
votes
0
answers
16
views
aspnetboilerplate: plugin with own dbcontext and UI
How to create a separate dbcontext and ui for each plugin created for aspnetboilerplate?
https://aspnetboilerplate.com/Pages/Documents/Plugin
0
votes
1
answer
58
views
ASPNETBoilerplate - Custom Claim auto expire after sometime authentication generated claim available
I'm using the .NET 7.0 Ready aspnetboilerplate Framework.
While login the user I've added a few Claims. but the concern are custom added Claim auto-removed after some time.
Can anyone know the reason?
0
votes
0
answers
30
views
Is there a package for Abp.Application.Services.Dto for use in Shared class libraries?
I am trying to create a shared class library to be used by my front-end (MAUI / Blazor) and my back-end API in aspnetboilerplate.
I want the shared library to be as light as possible and was wondering ...
0
votes
0
answers
86
views
Module in Azure Function
I am trying to bootstrap an ABP module in an Azure Function but I get an error:
Castle.MicroKernel.ComponentNotFoundException: 'No component for supporting the service System.IServiceProvider was ...
0
votes
0
answers
26
views
How do you do Integration Tests in ASP.NET Boilerplate if your application requires authentication from a third party single sign on authorizer?
I am using ASP.NET Boilerplate with ASP.NET MVC, not Core. How do I test an MVC Controller where my application requires authentication first from a Single Sign On third party?
I can't find anything, ...
0
votes
0
answers
30
views
What is difference between AbpCoreEf6Sample.Tests and AbpCoreEf6Sample.Web.Tests in test folder?
I'm confused, why there are two test projects in ASP.NET Boilerplate project? Which one is more suitable for writing API integration test in an application?
Versions:
ASP.NET Boilerplate 7.1
.NET ...
1
vote
1
answer
52
views
ABP IRepository<TEntity> from Service Provider is empty
I have a Console app that depends on different projects (I use DependsOn() notation) in my console module.
[DependsOn(
typeof(AbpAutofacModule),
typeof(SecondProjectModule),
// Other ...
0
votes
0
answers
14
views
How to enforce ocelot to send cookies obtained from frontend and resend them to downstream services?
Dears,
Ocelot doesn't send my cookies for requests sent to downstream services
I have frontend, API Gateway and API Backend, each deployed on its own domain
But I can't configure ocelot to resend ...
0
votes
0
answers
127
views
Asp Net ABP: how to map claims from JWT token to ABP User?
We are using ASP.NET Zero based on ASP.NET Boilerplate (.NET Core). We have a Mobile App that authenticates with AWS Cognito and needs to consume some API's and Application Services on our application....
0
votes
0
answers
49
views
Securing AbpServiceProxies/GetAll
Problem description
All the routes (URL(s)) for the API (including parameters to use) are accessible to unauthenticated users by calling this API AbpServiceProxies/GetAll which doesn't require any ...
0
votes
0
answers
174
views
ABP ASP.NET: How to access user details (and claims) from JWT Authentication Token in Application Services and Controllers?
We are using ASP.NET Zero (.NET Core) and we want to use AWS Cognito as Authentication Provider. We are using Cognito to authenticate on Mobile Apps and we also aim to use Cognito to authenticate on ...
0
votes
0
answers
28
views
How could I test my application services in test project?
When I try to run my test case I am getiing this exception:
System.TypeLoadException
Could not load type 'Castle.Core.Pair`2' from assembly 'Castle.Core, Version=5.0.0.0, Culture=neutral, ...
0
votes
1
answer
145
views
fluent validation in abp
I have fluent validation on ItemDto class in Application.Contracts project then in Application.Services I have api method that recieve ItemDto then I call this method from swagger and I want that ...
0
votes
0
answers
62
views
Tenant ID cookie value cannot be read when publishing API on IIS
I am using the Angular and aspnetboilerplate template in a project. When I change the tenant on the login screen it validates that the tenant exists, adds the cookie Abp.TenantId then reloads the page....
0
votes
0
answers
80
views
how to stop ABP from querying EMPTY AbpUserOrganizationUnits TABLE
We use ABP with a MSSQL database hosted on Azure.
in scope of Cost optimization we need to make as less requests to DB as possible.
during investigation i found out that ABP does around 50 ...
0
votes
2
answers
180
views
How to change the error message's information and language?
In my page I got the message lie "An error has occurred!"
The message is not fit my project.
I want to change the information and language.
I found the messages in:
\node_modules\abp-ng2-...
3
votes
1
answer
2k
views
System.MissingMethodException: Method not found: 'System.Type Microsoft.EntityFrameworkCore.Metadata.ITypeBase.get_ClrType()'
Good Day Developers,
Please I updated my .Net5 to .Net6 and I have this errors on adding migration:
System.MissingMethodException: Method not found: 'System.Type Microsoft.EntityFrameworkCore....
0
votes
0
answers
75
views
No component for supporting the service CaptchaMvc.Controllers.DefaultCaptchaController was found
Im trying to show captcha, using CatpchaMvc.Mvc5 from Nuget Packages. On my first projectfirst project, captha can show easily. But my second project second project,it unable to show. It says enter ...
0
votes
0
answers
82
views
Token Issue while accessing web application using Iframe which developed on Asp.Net Boilerplate
We are facing the same problem. Unfortunately, we are unable to proceed as we are facing so many issues. Could you please help us to resolve this.
We are facing error like "Blocked AutoFocusing ...
2
votes
0
answers
315
views
aspnetboilerplate failing stress test with transactional UoW
The stress test consists of calling the following API 500 times concurrently:
[UnitOfWork(IsDisabled = true)]
[AbpAllowAnonymous]
public async Task StressTest(string input)
{
...
0
votes
1
answer
106
views
ABP Custom Filter - Cannot get CurrentUserId in DbContext
I followed the Add Custom Data Filter Example on the ABP website to create my own Data Filter. My filter needs to use the currently logged in user, so I am trying to use the `IPrincipalAccessor' to ...
0
votes
0
answers
51
views
How to locking database record for IsolationLevel RepeatableRead in ABP UnitOfWork?
It's better if this issue is explained with an example. I have a database table VoucherNumber with an int column named [TotalNumberRecord]. It has only a record with the initial value of ...
0
votes
1
answer
32
views
I want to retrieve data from the database by linking two tables using asp. boilerplate
I want to retrieve data from the database by linking two tables using asp. boilerplate. I am using include for gatting match data from the child table. but my mapping of the model also shows the data ...
0
votes
1
answer
211
views
AbpSession always return null when start using Websocket
I'm using asp.net boilerplate framework, and I'm trying to set the WebSocket connection to become match the logged-in user id when the user establishes the WebSocket connection, but what I noticed is ...
1
vote
0
answers
21
views
AuthenticationException error when I run nswag
My project is using Boilerplate(v.7) with dotnet core (.net6) with Angular(I upgraded to Angular14)
I compiled the backend and frontend with no error.
I run the backend and run refresh.bat ("..\...
0
votes
0
answers
46
views
ASP.NET Boilerplate - Entity Task Requires Primary Key [duplicate]
Im just New to C# and Currently I am trying to learn ASP.NET Single Web Page Application.
I'm currently trying to This Tutorial that is provided by ASP.NET Boilerplate, But I am having issues when I ...
0
votes
1
answer
62
views
When run npm test in reactjs part of ASP.NET Boilerplate Web Application SyntaxError: Cannot use import statement outside a module
I'm use ASP.NET Boilerplate Web Application for my project when i want to run the default test for frontend of project with npm test facing this error:
FAIL src/App.test.tsx
● Test suite ...
0
votes
1
answer
83
views
ABP and .Net 5 problem retrieving records
I am working with ABP 6.5.0. I have an App Service that retrieves all the tenants running the GetAll method.
I have overwrite the CreateFilteredQuery and it runs the following code:
protected override ...
0
votes
0
answers
34
views
Does aspnetboilerplate track entity history in backgroundjobs and workers?
It seems aspnetboilerplate does not track entity change history in BackgroundJobs and Workers.
Is any option to enable or implement it?
0
votes
1
answer
311
views
Docker skip project on build
I have dockerfile with this config
FROM mcr.microsoft.com/dotnet/sdk:6.0 as builder
WORKDIR /app
COPY . .
RUN apt-get update;apt-get install curl; apt-get -y install zip
RUN curl "https://...
0
votes
0
answers
46
views
Drop foreign key for UserClaim or change model Code first approach
I created a linked table between Users and Tenants called UserTenants.
Now I want to drop the foreign key column: UserId. The problem is that I can't find the model for UserClaim which I can edit. I'...
0
votes
1
answer
101
views
How should I create a class with functions to be shared across multiple application services with aspnetboilerplate?
I have code/common functionality that needs to be re-used in multiple app services (i.e. say a simple lookup function). I am looking to create a Helper class that isn't really an API, just something ...
0
votes
0
answers
90
views
Periodic Background Worker Base in Boilerplate asp.net
how I can make Timer.Period property dynamic get value from setting
I do This Timer.Period = _settingManager.GetSettingValue(AppSettingNames.ShopsJobTime); but after I change this value it still ...
0
votes
0
answers
388
views
ABP framework adding Custom Claim to JWT
Firstly, We are using the ABP framework for developing our .NET projects and the Identity server as an authentication server. I add custom claims to our token by using the methods shared below. ...
0
votes
0
answers
31
views
AbpMVCAuthorize does not work on HTTPGet method in FileController
I am attempting to modify the FileController controller in Web.Core so the user is required to log in to download a file.
Adding the [AbpMvcAuthorize] to the method causes a 404. Why can't I just add ...
2
votes
0
answers
99
views
ASP.NET Boilerplate: ObjectDisposedException in EventHandler
I use ABP 5.1.0
.Net Core,
I have my class
ItemAsyncEventBaseHandler : IAsyncEventHandler<TEvent>, ITransientDependency
where TEvent : EventData {…}
Then i have class:
CustomHandler: ...
0
votes
1
answer
110
views
Abp Framework global json converter cannot be configure
I would like to define custom json converter and replace with AbpStringToEnumConverter in abp framework. I am trying to change JsonSerializerOptions.Converters with below code but it's not working.
...
1
vote
1
answer
306
views
How to disable MayhaveTenant filter for super admin(Host)? [closed]
I have a form where the list of data will shown.
The entity contains IMayhaveTenant Property.
Now when we created the record by admin user (Host), then we created the tenant first and after that ...
0
votes
0
answers
45
views
How can I change MaxValueLength of NewValue and OriginalValue in EntityPropertyChange.cs?
I am using aspnetzero and I have enabled entity history. Maxvaluelength of NewValue and OriginalValue is 512 chars in AbpEntityPropertyChanges table.
How can I change MaxValueLength of NewValue and ...
0
votes
0
answers
43
views
Mapping table view function for use in app service and ultimately as datatable ajax request in aspnetboilerplate
Im trying my hardest to use a table view function as a datasource for a service in my aspnetboilerplate implementation.
Below is the code i have in the service, i have added the function to the ...
0
votes
0
answers
103
views
ASP.NET Boilerplate: System.ArgumentNullException: 'Value cannot be null. (Parameter 'unitOfWork')'
I've started getting these errors:
public override async Task<ProductDto> CreateAsync([FromForm] CreateProductDto input)
{
CheckCreatePermission();
if (...
0
votes
1
answer
63
views
How to change aspnetboilerplate "an error occured dialog"
I want to change aspnetboilerplate sweetalert to any custom error dialog. I am using ASP.net core with Angular. Whenever there is a exception at server side, this dialog pops up. I can't find the ...
1
vote
1
answer
112
views
How to talk with ABP API from windows service
This is what I would like to build. A hosted web/api project built on APB where tenants can use the web application to define "Scan Definitions" that run inside their network. A scan ...
0
votes
0
answers
121
views
How to Integrate Sentry logging for Asp.net core in boilerplate framework
I am using .NET Core 3.1 version with abp in my project. I have tried implement with Sentry.aspnetcore package and trying with Sentry.log4net package also. But When I'm using Try catch block for ...
1
vote
0
answers
185
views
ABP: How to re- load Localization text dynamically without restarting API app
I am using ABP v4.7.0 (.NET CORE 2.1) with angular client.
I built some custom localization providers. These providers get translation dictionaries from Azure Blob Storage. I add localization sources ...
0
votes
0
answers
139
views
Asp.net Zero project Optimize
I have create 1 Project on Asp .NET Zero Framework
in that project I have approx. 700 Table
now issue is when I run this project it's take too much time for Register DB Context
Is there any way to ...