Base solution for your next web application

Activities of "sparkyjr"

I am using AsNoTracking in GetAll() repository call in the following way:

var itemsList=await _exampleRepository.GetAll()
                                      .AsNoTracking()
                                      .Where(someCondition)
                                      .Include(r=>r.Entity)
                                      .ToListAsync()

Is this the correct way to order AsNoTracking(), Where clause and Include?

I have a DomainService and I want to fetch all the users for a particular tenant. I try to do that using UserManager.So inject UserManager as a dependency in the constructor and try to use _userManger.Users.ToList() . But I get an exception as "DbContext has been disposed."

We deployed our web app on azure and found that the app is performing poorly. So we ran the diagnostic test on azure, results of which is posted below.

[attachment=1:1k4949ma]Graph.png[/attachment:1k4949ma]

The diagnostic report also says that >90.91% of failures came from '/signalr/reconnect' path.

Is this something to do with Abp Notification System? If so, how can I disable the notification system?

[attachment=0:1k4949ma]signalR.png[/attachment:1k4949ma]

Does the repository methods GetAsync(),GetAllListAsync() have AsNoTracking() enabled in them?

I am using repositories GetAll() method to fetch some data from the repository. But when I use [UnitOfWork(IsDisabled=true)] in controller and application service, GetAll() method is throwing an exception.

The exception that is thrown is "DbContext has been disposed."

Please suggest how to go about this issue.

If I remove virtual keyword from navigation property on an entity and set LazyLoadingEnabled to false in DbContext , the loaded entity still shows navigation properties for GetAllListAsync methods from the repository. Shouldn't it be showing null for the navigation properties?

Hi,

When I make a web request its taking too long for the constructor (MVC Controller as well as AppService) to get initialized. The thing is that the constructor has some services injected which in turn has some other services injected.

The example is as follows:

public class Example1AppService : AcmeAppServiceBase, IExample1AppService
    {
        private readonly IRepository<entity1> _entity1Repository;
        private readonly IExample2AppService _example2AppService;
        private readonly IExample3AppService _example3AppService;
        private readonly IExample4AppService _example4AppService; 

        public Example1AppService(
            IRepository<entity1> entity1Repository,
            IExample2AppService example2AppService,
            IExample3AppService example3AppService,
             IExample4AppService  example4AppService
            )
        {
            _entity1Repository =entity1Repository;
            _example1AppService = example1AppService; 
            _example2AppService = example2AppService;
            _example4AppService = example4AppService;
        }

and Example2AppService has a lot of Repositories as well as services injected in its constructor. And time taken to hit constructor of Example1AppService is quite long and measurable.

I have worked with dependency injection in different project before and have never faced issue with constructor intialization. The IOC container that we used was Autofac.

Thanks in advance

I am using Visual Studio Load Test with a load of 15 users , server location set as East US. I am visiting a few pages and also perfoming a create operation in the test script. But when I run this test with 15 users the site slows down like anything and the page response time is very bad even for simple read operations. I have tried the following: Disabling Background jobs Registering the Castle dependencies explicitly Also disabling Unit of Work for certain read methods.

Please provide some possible suggestions as to what could be going wrong.

Hi,

We are experiencing a very slow performance when there are as less as 10 users using our site.

We have a strong feeling that the tables/records are getting locked, and are not available for other users. Because, unit of work is like a transaction, am I correct?

Does unit of work lock tables/records? Does it lock tables/records even if the method is just fetching data?

Thanks in advance, SparkyJr

Hi,

I downloaded the latest release i.e. v5.0.1 (ASP.Net MVC 5.x and jQuery), and built it to receive 4,144 build errors :shock: ???

Also, I am not sure why TypeScript files exist in the solution, because, I am not using Angular. I am using jQuery for my MPA. I have Visual Studio Enterprise 2015 (.Net v4.6.1).

It gives error for the .ts files. I guess, I can exclude them. Also, I get all sorts of errors. The most prominent one is this:

"The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, .....'"

What am I supposed to do here?

FYI, if I somehow merge our code with this solution, I get 23661 build errors. :shock:

Thanks, SparkyJr

Showing 1 to 10 of 32 entries