aspnetboilerplate

Building Notification Data for IRealTimeNotifier

旧时模样 提交于 2020-07-10 08:47:17
问题 I'm using ASP.NET Boilerplate and have implemented an IRealTimeNotifier in order to email users when certain actions are performed in the application layer. I'm having trouble building the notification data to pass to the IRealTimeNotifer as per the example on the following page: https://aspnetboilerplate.com/Pages/Documents/Notification-System#multiple-notifiers My EmailRealTimeNotifier is exactly as you see on the page: public class EmailRealTimeNotifier : IRealTimeNotifier,

Angular material doesn't work with adminlte UI that attached with ABP 5.6.0

房东的猫 提交于 2020-07-10 07:29:15
问题 Why angular material does not work with adminlte template I've imported all angular material component by app.module.ts but when I use mat-select it didn't work the design totally crashed such as below Screenshot : My code is identical to this another screen shoot 来源: https://stackoverflow.com/questions/62433895/angular-material-doesnt-work-with-adminlte-ui-that-attached-with-abp-5-6-0

Change JSON serialization from camelCase to PascalCase [duplicate]

偶尔善良 提交于 2020-06-29 03:51:16
问题 This question already has an answer here : JSON serializer Not Working After Upgrade To 3.6.2 (1 answer) Closed last year . After migrating my project from Core 2.1. to 2.2. I am having trouble with my Kendo widgets. Fields in the model are specified with PascalCase and the field names returned from the server in the JSON are using camelCase. I've added DefaultContractResolver in Startup but JSON is still serialized in camelCase. Any workaround here? services .AddMvc(options => options

Error: Failed to complete negotiation with the server: Error: Not Found

不羁的心 提交于 2020-06-17 15:51:38
问题 I'm using SignalR with ASP.NET Boilerplate .NET Core 3.1 but I encounterd this problem Error: Failed to complete negotiation with the server: Error: Not Found How could I resolve this problem without skip negotiate (solution mentioned here ) zone-evergreen.js:2845 POST http://localhost:21021/signalr/negotiate?enc_auth_token=wNYmO41%2F Show 162 more frames signalr.min.js:16 [2020-06-07T10:17:31.634Z] Error: Failed to start the connection: Error: Not Found here is Angular Code: ngOnInit(): void

AspNetBoilerplate REACT template - error after npm start

末鹿安然 提交于 2020-06-17 02:13:23
问题 Today I downloaded the ABP Asp.Net Core REACT SPA template. After downloading, I ran npm install and then npm start. These two steps worked, no issues. Once the REACT app has started, the browser opens up and all I get is a blank page. Then after a few seconds the below error dialog box comes up. When I look at the chrome console, I find the errors shown below. I'm new to REACT and very much still learning it. So I could use some help in tracking this error down. Please note I did run the

Which is the real ASP.NET Boilerplate project?

北城余情 提交于 2020-06-08 19:17:27
问题 Might be a dumb question for many but we are thinking of adopting ASP.NET Boilerplate for our next project. Just a bit confused as there seems to be 2 different websites for it and 2 different Git repositories. First one is https://aspnetboilerplate.com/ and second is https://abp.io/. Both have their own Git repositories and Stack Overflow tag. I'm totally confused as to which one is the most correct project to use. Any guidance is much appreciated. Many thanks. 回答1: ABP Framework (abp.io) is

What is the difference between Roles and Permissions in ASP.NET Boilerplate Template?

本小妞迷上赌 提交于 2020-03-21 07:11:11
问题 In ASP.NET Boilerplate, why does it has roles and permissions to control authorization? Which is the difference between both? 回答1: 1. Why does ABP have roles and permissions to control authorization? What is the difference between the two? Having both roles and permissions allows flexibility and ease for admins to control authorization. The difference is that authorization only depends on permissions, not roles. From https://aspnetboilerplate.com/Pages/Documents/Zero/Role-Management: Roles

response: 413 Request Entity Too Large

不羁岁月 提交于 2020-03-05 04:44:11
问题 When POSTing a request which can contain one or more files (as base64 string) I get this error response: ERROR 2018-11-22 09:54:18,244 [13 ] Mvc.ExceptionHandling.AbpExceptionFilter - The remote server returned an unexpected response: (413) Request Entity Too Large. System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (413) Request Entity Too Large. at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Channels

Asp.Net Boilerplate .Net Core 2.0 AbpAuthorizationFilter - ChallengeResult / Unauthorized

只愿长相守 提交于 2020-02-04 02:29:07
问题 I am running an Asp.Net Core 2.0 with Asp.Net Boilerplate version 3.4.0 web application. When I have an authenticated user that does not have the required permissions to access a resource, a ChallengeResult is set by the AbpAuthorizationFilter via the Abp framework. This behavior results in the user being returned to the default login page. If the user is authenticated, I would like to set a ForbidResult and redirect them to the default AccessDenied page. After reviewing my options, I see

Is calling a SignalR Hub from the Application Service Layer a bad practice in ASP.Net Boilerplate?

こ雲淡風輕ζ 提交于 2020-01-24 09:33:26
问题 I'm using the Asp.Net boilerplate template with ASP.Net Core 2.1. I implemented a Hub in the Web.Core assembly and created a controller. I can subcribe/notify data with my hub from any client, this is not my problem. I'd like to use this Hub in the Application Services layer, but SignalR is not referenced by Application Services layer by default. So my question is : Is it a bad practice to reference SignalR in the the Application Services layer ? Thanks in advance ! Regards, Pierre-Luc 回答1: