Base solution for your next web application

Activities of "ayoyusuf"

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

Hi @ismcagdas

Thanks for the prompt response. This is very clear. Thanks.

However, this sample only shows how to set a value at the initialization of the Session parameter. Kindly advice, how do we update the session value? (I would prefer to use best practice as this might be a sensitive component, so I don't want to just mess around.)

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?

The email has been sent

Remember, everything is autogenerated from the raw template files via power tool

Prerequisites

  • What is your product version? 11.2
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

When complete app is generated using power tool and it contains a File. The File upload does not work. It flags an error.

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 11.1
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net Core

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).

Hi, Thanks for the Feedback.

We do think option one would be a much better option.

Do you have any sample code that can be re-used or modified for this suggested methodology?

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 11.2
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

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)

Showing 1 to 10 of 16 entries