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,577
questions
0
votes
1
answer
112
views
ASP.NET Boilerplate Angular compile errors
After download of a fresh version of ABP you run these commands in the angular project folder:
npm install
npm start
...but then the nightmare starts:
deprecated @types/moment@2.13.0
deprecated @...
2
votes
1
answer
261
views
Abp.Zero.Common, Version=6.0.0.0, Culture=neutra l, PublicKeyToken=null' does not have an implementation.”
System.TypeLoadException:
“Method 'Get' in type 'Abp.DynamicEntityProperties.
DynamicEntityPropertyValueStore' from assembly
'Abp.Zero.Common, Version=6.0.0.0, Culture=neutra
l, PublicKeyToken=null' ...
0
votes
1
answer
290
views
how to extend settings in asp.net boilerplate
I'm using asp.net Zero which is based on asp.net boilerplate to develop our project.
I want to save our settings in AbpSettings table. But we have to add a filed named year.
when I get settings or ...
1
vote
1
answer
300
views
Asp.Net Core Deserialize Interface Type
I am working on an Asp.Net Core application where I have defined a service that is responsible for storing the request into a SQL database. My Request consists of three properties Id, RequestType, and ...
2
votes
0
answers
447
views
JWT Authentication in ABP
In asp.net boilerplate, I'm wondering, why there is an encryptedAccessToken in the api/TokenAuth/Authenticate method? there is no documentation on this.
Also, the JWT is 1 day valid so:
-is it secure ...
0
votes
0
answers
66
views
Moq & Unit Test AspBoilerPlate .Net Core 3 throw exception "The invoked member is not supported in a dynamic assembly"
I'm trying to test file upload service by pathing IFormFile object but it throws exception when pathing moqed file to target service.
[Fact]
public async Task ReadSheetFile_Test()
{
var fileMock = ...
0
votes
1
answer
459
views
Bearer token not getting included in SwaggerUI
I am using AspNet Boilerplate framework. I am trying to implement authentication through AzureAD in my application. I am using ASP.NET core 3.0 and testing my application through swagger. I am seeing ...
2
votes
1
answer
476
views
Property Injection for NRules within ABP
I am using ABP Boilerplate 6.0 and have integrated NRules with our platform.
I am able to get the rule below to work, but the issue is that I cannot use the injected ‘_questionResponseRepository’ ...
0
votes
1
answer
1k
views
Error in "Authorization failed for the request at filter 'Abp.AspNetCore.Mvc.Antiforgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter"
I am new to Asp.net Boilerplate and I follow along on the tutorials made by Lee Richardson in YT. I have also read the documentation in asp.net boilerplate page about web and dynamic API.
Now, I am ...
0
votes
1
answer
665
views
asp.net boilerplate incorrectly saving entity as deleted
This is my first post on here so sorry if I don't provide enough information.
We are using ABP v5.1 with a SQL Server database. We have a Message entity which inherits from FullAuditedEntity<int>...
0
votes
1
answer
319
views
Cannot access a disposed object UserManagerProxy
After upgrading to .NET 5 and using the latest version of the ASP.NET Boilerplate (not ABP Framework / ABP.io), the following line creates a error in my console -- 'Cannot access a disposed object ...
1
vote
1
answer
813
views
Using ASP.NET Boilerplate without Dependency Injection (DI) Container?
Ironically, the problem DI is trying to solve, is exactly the problem that has been created in the project. Are there any resources for using the framework where i'm capable of picking and choosing ...
0
votes
1
answer
213
views
How to upgrade aspnetboilerplate application. Abp 3.5.0 to Abp 6.0
I have aspnetboilerplate application with abp 3.5.0 and .netcore2.0. How i can safely upgrade to abp 6.0 and .net 5.0.
Please also suggest which options is good moving towards .netcore 3.1 or .net 5.0....
1
vote
1
answer
2k
views
Consider enabling transient error resiliency by adding 'EnableRetryOnFailure()' to the 'UseSqlServer' call on ASP.NET core 2.2
I'm using aspnetboilerplate solution developed with ASP.NET core 2.2 . The backend is deployed on azure and it uses the SQL server provided.
Sometimes, when the backend has a lot of requests to handle,...
0
votes
1
answer
207
views
Allowing only 1 role per user using Asp.Net Boilerplate 5.5.0.0
I am using Asp.Net Boilerplate (ABP Zero) to manage users in multi-tenant environment. I created new roles within the Angular app and permissions (added to the .net core backend code) to those roles. ...
0
votes
1
answer
880
views
A single user can login to multiple tenants with one email id
I am using ASPNETZERO multi-tenancy solution and I want to achieve following solution in that.
My need is like One user share all details among all Tenants.
Let's say there is user1 registered in ...
0
votes
1
answer
659
views
I can't delete file by .net core 3.1 when the file is opened
I'm trying to delete a file by .net core but the problem while the user opens the file I can't delete it, even if I tried to delete it manually Windows show me this Message:
the action can't be ...
0
votes
0
answers
373
views
Asp.Net Zero (Asp.Net Boilerplate framework) Session user is null when application deployed to IIS with load balancer
Asp.Net Zero (Asp.Net Boilerplate framework) Session user is null when application deployed to IIS with the load balancer.
After some hard refresh, it is coming with the right user.
0
votes
2
answers
232
views
How to upgrade abp 5.14 to abp 6.0?
Abp new version 6.0 come out. My project version is 5.14.0, core 3.1, use Startup Templates, how to safe upgrade to abp v6.0?
Thank you.
0
votes
1
answer
352
views
Asp.Net Boilerplate Notifications
I have Notifications working in a .NET Core web application using the Abp Boilerplate framework. I've also implemented EmailRealTimeNotifier so that after the Push notification is sent, an Email is ...
0
votes
2
answers
294
views
How can I trigger the EventBus after the current UoW has properly completed?
How can I Trigger the EventBus after the current UoW has properly completed?
In the screenshot, I am triggering the EventBus, which in turn is telling the SignalR hub to tell my front-end user to ...
13
votes
2
answers
14k
views
BadHttpRequestException: Reading the request body timed out due to data arriving too slowly. See MinRequestBodyDataRate on ASP.NET core 2.2
I'm using aspnetboilerplate solution developed with ASP.NET core 2.2 .
The backend is deployed on azure and it uses the SQL server provided.
Sometimes, when the backend has a lot of requests to handle,...
0
votes
1
answer
464
views
.NET Core environment variables in source control
I'm learning to work with the .NET Core 5.0 framework and was reading this article about managing user secrets. Coming from Node.js, I'm used to .env files where for example database connections ...
1
vote
1
answer
341
views
Asp.Net Boilerplate Entity notifications
I have Notifications working in a .NET Core web application. However I'm trying to understand the Entity Notification operation. As I read the documentation and tried few coding some scenarios it ...
2
votes
1
answer
746
views
EventBus is not triggering event on ASP.NET Core using Abp
I am trying to use EventBus as described here.
Here is my EventData class
public class UpdateEntryEventData: EventData
{
public long? AttributeId { get; set; }
public int? ...
0
votes
1
answer
72
views
Error after updating angular 7 to angular 10 - AspNetBoilerplate
I've downloaded aspnetboilerplate angular template and upgraded the dependencies in my project according to it.
After resolving compile time errors, I got a runtime error showing in the console window ...
0
votes
1
answer
121
views
How to only audit [Audited] methods without having [DisabledAudited] everywhere?
My Audit logs are getting out of hand so I decided I want to only audit all requests which basically are not a Get request. Is there a very simply way to do this from configuration?
The documentation ...
0
votes
1
answer
4k
views
HangFire Database Tables
I have an asp.net core web application using the ABP Boilerplate framework. I've implemented Abp.HangFire.AspNetCore HangFire into the application. The web application has a database for the ...
0
votes
1
answer
250
views
ObjectMapper Error when Upgrade .Net Core 2.2 & ASP.NET Boilerplate 4.5 to .Net Core 3.1 & ASP.NET Boilerplate 5.13
ObjectMapper works on .Net Core 2.2 & ASP.NET Boilerplate 4.5 -> OK
but works on .Net Core 3.1 & ASP.NET Boilerplate 5.13 -> Error
Are there any other settings that must be done?
My ...
0
votes
1
answer
550
views
How to register Singletons of a class with IocManager for different sets of constructor parameters in Aspnet boilerplate
I have an Aspnet boilerplate C# web application and in a PreInitialize() method of a module I have this dependency registration
IocManager.Register<IMyProvider, MyConcreteProvider>(...
2
votes
1
answer
719
views
How to get planned execution DateTime inside a Hangfire recurring job?
I'm trying to migrate an existing ABP project backed by Quartz.NET to Hangfire.
I have a recurring job and I need to get the scheduled fire time inside the job. Note that I do not need the real ...
1
vote
1
answer
652
views
How to retrieve (Jwt) access token from current user and pass it to a mobile application in asp.net boilerplate (abp)?
I am new to asp.net boilerplate (abp.io).
I made a project as backend for an existing mobile application.
So I need to retrieve Jwt token from current logged in user and pass it for mobile application ...
1
vote
0
answers
360
views
Aspnet Zero Nswag generating service proxies
I am using Aspnet Zero they generating service proxies in typescript using NSWAG. Now I want to generate these service proxies separately in every single file. Any idea of how to achieve it?
1
vote
1
answer
1k
views
ASP NET Angular deployment on Azure gives 404 resource not found for any file or route
I've been trying to deploy my ASP.NET Boilerplate project to Azure and so far I've succeeded to publish my project to Azure using Visual Studio publish. Right now I have my back-end up and running and ...
0
votes
2
answers
633
views
Compare between DateTime from Client and DateTime Saved in Database
I'm trying to make a comparison between two Dates in Date,Hours,Minutes,Seconds but when I invoke
x.CreationTime.TimeOfDay the nullable exception appeared.
I thought this link answer will solve my ...
0
votes
0
answers
258
views
Aspnet Zero Time on client side is incorrect when daylight saving is on
In AspNet Zero Core + Angular Project. I have Set Clock Provider to UTC Clock.Provider = ClockProviders.Utc; in Startup.cs
as stated in the document which causes timezone selection in settings for ...
1
vote
0
answers
160
views
Pass Parameter with Menu Click - Asp.Net BoilerPlate
currently we are using angularJS with Asp.Net Boilerplate
We have a navigation menu item called listings, when it's clicked, it redirects to listings.
Code to trigger that is as followed.
...
0
votes
1
answer
896
views
Customization And Localization Of abp.io Default Validation Error Messages
How can I Customize And Localize Of abp.io Default Validation Error Messages ?
I would add translated message for another language, instead of "The {fieldName} field is required."
How to do ...
1
vote
1
answer
474
views
How to override the login page provided by abp.io?
I tried to override my custom login with LoginModel and Login.cshtml as described here.
After replacing Login.cshtml and myCustomeLoginModel.cs, this error is shown :
'LoginModel' does not contain a ...
0
votes
1
answer
207
views
In AspNet Boilerplate DotNetCore Console App that uses a custom AppService it does not perform the dependency injection
I am trying to make a console app that uses a custom AppService by adapting from the example https://github.com/aspnetboilerplate/aspnetboilerplate-samples/blob/master/AbpEfConsoleApp/AbpEfConsoleApp/...
0
votes
2
answers
390
views
SQLException when deploying ASP.NET Boilerplate application to Azure
I've been trying to deploy an ASP.NET Boilerplate application to Azure for the last couple of days and I haven't been able to do so. I keep stumbling upon this error:
First I make a Web App + SQL ...
0
votes
0
answers
134
views
Switch role wise screen in asp net zero, if one user has multiple roles
I have checked asp net-zero document for role-wise change display screen based on roles permissions but in asp net-zero, A user can have zero or more roles. If a user has more than one role, the user ...
2
votes
1
answer
587
views
How is code organized in the ABP framework?
I have some doubts about organizing code. I see two ways of organizing code: package by layer and package by component.
http://www.codingthearchitecture.com/2015/03/08/...
0
votes
0
answers
96
views
Add Worker Service project to abp.io solution
I have an abp.io solution to which I'd like to add worker service project (later to be used as windows service).
How do I go about integrating worker service project with existing abp.io ...
0
votes
1
answer
139
views
ABP: FlurlHttpException covers the UserFriendlyException
I use ABP as a server and a mobile app in Xamarin Forms.
In my Xamarin Forms I call through Flurl my api.
My api throws a UserFriendlyException. It works well through swagger UI browser.
But in my ...
0
votes
1
answer
452
views
Cannot access a disposed object. with SignalR and Timer Manager
I wanna make my function send data as a real time (every 2 seconds or once there is change in the database table ) but the problem is there is Exception keep appread in my below code.
The exception ...