Angular + .Net Core
Version: 13.1
Please do you have any complete sample code implementation for best practice for a user being able to change/switch between organization units. Our attempts over several months have not been successful as the need to persist the session of the organizationunitid has been a challenge. (Yes, we have tried the customized sessions but still struggled with this.). We would appreciate any version of complete working sample. (usual what we see are short code concepts that don't easily translate to fully working solution)
Solution: Angular + Asp.Net Core Version: 13.1 API Version: 13.1 Angular Version: 13.1
Issue with Angular
Issue: If Captcha is enabled, it always gives an error. "Unable to determine that you are not a robot".
No Captcha is display to the user to enter neither do we understand the basis.
To trouble shoot for automated Captcha , we noticed the login or create account payload submits exactly the same Captcha everytime "captchaResponse": "HFMzlhIEBGU1F-PglUHRNFHFs3ZnUeSUo5VWcCQUsPTWwMSmosNkkLbXJVFmNBc04JO2B3V0oSGgxSJ3s7PyURGks6JwFFCFhwAwZ2dW87UTx2HQw5DDkKCntnQ0pmExtDGyhoLlFqNyRTPQJZBQZcc14fdWMVJUQ_DisCawxOOwIhHQ9MCx5FXxB_IDJKXENdQWIBXU5_"
No matter which browser or session, the captcha is the same.
We checked an old post of a previous version logged with similar problem, but the solution is to ensure both the angular and API are same versions. In this case they both are.
Please kindly confirm which component or what exactly we should be looking at to fix this?
Solution: Angular + Asp.Net Core Version: 13.1
Issue with the API
Issue: Everything worked fine before upgrade from Version 12.4 to Version 13.1.
If I run any endpoint that has an Object as any of its parameter, I get an error from the ASP.Net zero framework before it even gets to the end point.
I even tried it right from swagger, and it triggers the error before it gets to the endpoint. If all parameters are string or anything else, they all work fine. the Error is below:
the sample end point in the App service
public async Task<object> RunDefinedReportObjectAsync(string reportName, object selectedparameters, object paramtype = null)
Error MEssage
{
"result": null,
"targetUrl": null,
"success": false,
"error": {
"code": 0,
"message": "Your request is not valid!",
"details": "The following errors were detected during validation.\r\n - The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.\r\n",
"validationErrors": [
{
"message": "The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.",
"members": [
"$"
]
}
]
},
"unAuthorizedRequest": false,
"__abp": true
}
Swagger screen shot
Prerequisites What is your product version? -> 12.0
What is your product type (Angular or MVC)? -> Angular
What is product framework type (.net framework or .net core)? -> .net Core
We are currently using OrganizationUnits in our App. However, we now have a need for some users to belong to Multiple organization units. In such situations, We are trying to find out what is currently inbuilt into AspZero to enable users to Switch the current OrganizationUnit they are interacting with when logged in as a normal user in a Tenant.
Product Version 12.01 Angular .Net Core
When we pick Menu items, they show up in this format which is as expected.
http://localhost:4200/app/reports/reports/cashbook?module=RP&category=SUBMENU
However when we use the search bar in the menu (Quick Nav) and pick from the result, I only get this http://localhost:4200/app/reports/reports/cashbook
with the parameters are missing.
This seems to be a bug. How do we ensure the results also have the parameters?
When complete app is generated using power tool and it contains a File. The File upload does not work. It flags an error.
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
We have a large application and my understanding is that ASP.NET ZERO is enterprise ready and hence I am hitting some size based performance limitations that I am getting concerned about. So, need clarification on the advise methodology for resolution.
I have created and Compiled successfully about 2,000 Service in the .net Core and all corresponding dtos. The Swagger is loading and running fine. The Angular NSWAG refresh succeeded.
But on compilation of the Angular I get this Error:
Error: src/shared/service-proxies/service-proxy.module.ts:9:16 - error TS2590: Expression produces a union type that is too complex to represent.
9 providers: [ ~ 10
... 1505 { provide: HTTP_INTERCEPTORS, useClass: AbpHttpInterceptor, multi: true }, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1506 ], ~~~~~
When I reduce the number of Services it compiles fine, but once the services are all their it gives this error. I have tried switching services and it compiles with all the services provided the number is much smaller. So the issue is due to number of services involves.
Is there way around this? (are there other Size related performance issues I should be looking at for?) Has ASP.NET Zero been tested with large Enterprise apps as this is one of several performance snaggs I have hit and now getting very worried. (Earlier raised the issue of several minutes of wait time for the Permission screens to load. Still no solution for that).
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
I have a large application with alot of Menus hence a lot of permissions.
Everything loads fast and works fine except any page with Permissions (e.g. Users -> Edit or Roles-> Edit ). These permission pages take about 3-5 mins to load. On some browsers, it makes the browsers start prompting if to wait or exit.
Is there a way to implement Auto scroll or Pagination for the Permissions if the number of Permissions is the problem. (There are about 12,000 Permissions in ALL for the entire app)
Please answer the following questions before submitting an issue.
When I generate DTOs and it converts it to Swagger variables, I am struggling with the Logic, as I need to understand the relationship between my variable name and the swaggwer variable name
My application DTO variable names as defined: GLSalesAccount GLCOGAccount PaymentMethodID AmountPaid UndistributedAmount
Automated Swagger created for the DTO: glSalesAccount glcogAccount paymentMethodID amountPaid undistributedAmount
Please why is GLCOGAccount not glCOGAccount
what is the logic for it to turn to glcogAccount?
We are using ASP.Net Zero Asp.Net Core MVC & JQuery 5.0.6. I have my project and app working fine for most of my deployments. The challenge: is that if we have a Modal Form opened from a URL (Header Modal), and it has Datatable (e.g. A Header Table), if we open another Modal form (Detail Modal) having a table from it (e.g. to Open a Detail Table based on the Header Table), the Detail Modal opens but the Table does not show properly and the JQuery breaks but no errors in Chrome development debugger.
In Version 2.0 using MVC and JQuery (which used Jtable), we are able to open an Header Modal and detail Modal with tables and they work perfectly.
Please is there a sample for Modal header and modal detail where both modals have datatables?
NOTE: We have the List Modal, create Modal and Edit Modals working in both Ver 2 and ver 5.