Base solution for your next web application

Activities of "rasoulshams"

  • v10.1.0
  • MVC
  • .net core

If links are clicked after pages are loaded but before api calles are fully completed (for instance, before data tables are loaded), a "task was canceled" error is raised. I have attached the error in Visual Studio. I presume this is related to AbpSession and goes all the way to the LoginViewComponent. If I comment this view component, other user related view components cause similar error if the same actions are taken (clicking links multiple times before a page or API call is fully loaded).

These actions are not carries out deliberately but sometimes, as some services are slow, the user decides to navigate somewhere else and clicks another link a few times which then causes this error and the server becomes unresponsive altogether.

Any ideas on how I can resolve this or how to approach this problem?

Regards!

Screenshot 2021-05-18 at 14.39.33.png

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

I have deployed the app to Azure App Services through Azure Pipelines and everything works fine except the dashboard. For some reason, it says "draggable not a function". It seems jQuery UI is not loaded. I have checked all files and the jquery.ui.js is uploaded and included within the "assets" folder.

Although the issue may be something else. It looks like a few resources are not found but I can't figure out which as on my local machine, everything works fine. On Azure, I have enabled Web Sockets as well (for SignalR) but this issue still remains.

Any ideas?

  • 9.1
  • Mvc
  • .Net core

I know settings can be accessed from application services, domain services and controllers using base classes or by injecting ISettingManager but how can settings be accessed from within entities and aggregate roots inside the core project? Some of my entities require the settings datas but I can't access them from entities.

I'd appreciate if someone can help.

v9.1.0 | MVC | .Net Core

How can I upgrade to the new version 10 (.Net 5)? What is the best route? And also, is it recommended?

In my app, I need to go through hundreds of records one by one, process each record, gather and analyse data for that record, create a new entity and store it in the database. Now, the storage of each record affects the processing of the next record; in other words, when the newly created entity is inserted, it has to be read along with other data from database to help decide how the next record on the list is processed, and s on.

Since UoW is used and data is persisted at the end of it, I use "CurrentUnitOfWork.SaveChangesAsync" to store each record after I process it within the loop but this results in a very slow overall process. I tried to disable UoW for this method using the "UnitOfWork(isDisabled = true)" attribute but I get an error stating that "Cannot access a disposed object". I did use the virtual keyword as well but no luck.

I have tried removing "CurrentUnitOfWork.SaveChangesAsync" and it does run 6 to 7 times faster but as all the data is persisted at the end of the unit of work, I won't have updated data when iterating through the original records. I need updated data after the newly created entity is inserted in order to process the next record.

Note that this is not a batch insert as I know EF Core is not suitable for that. This is individual insersion of numerous records.

I am currently running this as a Hangfire background job. I've tested the speed when not run as a job and the results are the same.

Is there any way to speed this up? I hope it's clear and appreciate if you can help.

Many thanks.

Question

v9.1.0 MVC .Net Core

I have tried to deploy my app to Docker but have had no success. I run the build-mvc.ps1 script and I get the following error:

Error: No such image: zero/mvc Step 7/24 : COPY ["src/[NAME].Web.Public/[NAME].Web.Public.csproj", "src/[NAME].Web.Public/"] COPY failed: stat /var/lib/docker/tmp/docker-builder070354949/src/[NAME].Web.Public/[NAME].Web.Public.csproj: no such file or directory

I'm not sure what needs to be done. I also tried to deploy to Azure by setting up a pipeline using your tutorial but again to no avail. The error is I get is along there lines: within Restore task in the pipeline:

##[error]Error: Failed find: ENOENT: no such file or directory, stat '/home/vsts/work/1/s/src/[NAME].Web.Mvc/node_modules/.bin/acorn' (Error screenshot below)

I appreciate if someone can help.

Many thanks.

Showing 1 to 6 of 6 entries