Base solution for your next web application

Activities of "bartkoolhaas"

Even zipped thats 250mb....

The entire project? Thats quite a large file.... I'll do my best!

I fixed those, it still cannot find the respective classes...

The errors it gives are as follows:

Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'PhoneBookDemoAppServiceBase' could not be found (are you missing a using directive or an assembly reference?) Acme.PhonebookDemo.Application C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Application\PhoneBook\PersonAppService.cs 16 Active Error CS0246 The type or namespace name 'IPersonAppService' could not be found (are you missing a using directive or an assembly reference?) Acme.PhonebookDemo.Application C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Application\PhoneBook\PersonAppService.cs 16 Active Error CS0006 Metadata file 'C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Application\bin\Debug\net5.0\ref\Acme.PhonebookDemo.Application.dll' could not be found Acme.PhonebookDemo.Test.Base C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\test\Acme.PhonebookDemo.Test.Base\CSC 1 Active Error CS0006 Metadata file 'C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Application\bin\Debug\net5.0\ref\Acme.PhonebookDemo.Application.dll' could not be found Acme.PhonebookDemo.Web.Core C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Web.Core\CSC 1 Active Error CS0006 Metadata file 'C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Application\bin\Debug\net5.0\ref\Acme.PhonebookDemo.Application.dll' could not be found Acme.PhonebookDemo.GraphQL.Tests C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\test\Acme.PhonebookDemo.GraphQL.Tests\CSC 1 Active Error CS0006 Metadata file 'C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\test\Acme.PhonebookDemo.Test.Base\bin\Debug\net5.0\ref\Acme.PhonebookDemo.GraphQL.Test.Base.dll' could not be found Acme.PhonebookDemo.GraphQL.Tests C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\test\Acme.PhonebookDemo.GraphQL.Tests\CSC 1 Active Error CS0006 Metadata file 'C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Application\bin\Debug\net5.0\ref\Acme.PhonebookDemo.Application.dll' could not be found Acme.PhonebookDemo.Tests C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\test\Acme.PhonebookDemo.Tests\CSC 1 Active Error CS0006 Metadata file 'C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\test\Acme.PhonebookDemo.Test.Base\bin\Debug\net5.0\ref\Acme.PhonebookDemo.GraphQL.Test.Base.dll' could not be found Acme.PhonebookDemo.Tests C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\test\Acme.PhonebookDemo.Tests\CSC 1 Active Error CS0006 Metadata file 'C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Application\bin\Debug\net5.0\ref\Acme.PhonebookDemo.Application.dll' could not be found Acme.PhonebookDemo.Web.Host C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Web.Host\CSC 1 Active Error CS0006 Metadata file 'C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Web.Core\bin\Debug\net5.0\ref\Acme.PhonebookDemo.Web.Core.dll' could not be found Acme.PhonebookDemo.Web.Host C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Web.Host\CSC 1 Active Error CS0006 Metadata file 'C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Application\bin\Debug\net5.0\ref\Acme.PhonebookDemo.Application.dll' could not be found Acme.PhonebookDemo.Web.Public C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Web.Public\CSC 1 Active Error CS0006 Metadata file 'C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Web.Core\bin\Debug\net5.0\ref\Acme.PhonebookDemo.Web.Core.dll' could not be found Acme.PhonebookDemo.Web.Public C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Web.Public\CSC 1 Active Error CS0305 Using the generic type 'ObjectMapper<TSource, TDestination>' requires 2 type arguments Acme.PhonebookDemo.Application C:\Users\Bart Koolhaas\Documents\Visual Studio Projects\PhoneBookDemo\aspnet-core\src\Acme.PhonebookDemo.Application\PhoneBook\PersonAppService.cs 40 Active

I did... Maybe not correctly?

Aaaaaahhh, apologies, i did do this. Visual Studio says "The type or namespace name 'IPersonAppService' could not be found, and it then gives me 3 options "Generate interface 'IPersonAppService' in new file, Generate interface 'IPersonAppService', or Generate new type... What should I do here?

Hi, In the step-by-step tutorial, "Creating PhoneBook Component"/"Creating Person Application Service, the PersonAppService class inherits the classes PhoneBookDemoAppServiceBase and IPersonAppService. Both have not been created in the tutorial.....

Should these be GetPeopleInput and PersonListDto instead? These have been created in the steps before?

public class PersonAppService : PhoneBookDemoAppServiceBase, IPersonAppService { private readonly IRepository<Person> _personRepository;

public PersonAppService(IRepository&lt;Person&gt; personRepository)
{
    _personRepository = personRepository;
}

public ListResultDto&lt;PersonListDto&gt; GetPeople(GetPeopleInput input)
{
    var people = _personRepository
        .GetAll()
        .WhereIf(
            !input.Filter.IsNullOrEmpty(),
            p => p.Name.Contains(input.Filter) ||
                 p.Surname.Contains(input.Filter) ||
                 p.EmailAddress.Contains(input.Filter)
        )
        .OrderBy(p => p.Name)
        .ThenBy(p => p.Surname)
        .ToList();

    return new ListResultDto&lt;PersonListDto&gt;(ObjectMapper.Map&lt;List&lt;PersonListDto&gt;>(people));
}

}

In the step by step documentation (and in the video) it shows the menu item entry as follows:

new AppMenuItem("PhoneBook", null, "flaticon-book", "/app/main/phonebook")

Solved; it turned out to be yet another mistake in the tutorial....

in the main-routing.module where you define the path of the menu item, you need to add the data pemission in order for the link to work, like this:

{ path: 'phonebook', component: PhoneBookComponent, data: { permission: 'Pages.Tenant.Dashboard' }},

The tutorial leaves it out. Ive now copied the permission from the dashboard menu item and then it works. I guess it is possible to add a 'Pages.Tenant.Phonebook"permission somehow, but that requires some further figuring out....

Thanks @AuroraBMS; I have multi tenancy disabled, so its not giving me this option?

  • v10.2.0
  • Angular
  • .net Core

I'm following the step-by step getting started manual ,but cant get the added menu item to work. The provided code in the instructions seems to be faulty at various points, and I believe to have fixed most issues and its compiling without errors; the PhoneBook menu item shows nicely, but clicking it does not result in showing the PhoneBook component template.

Any idea what steps I can take in order to debug and find the cause? Or, what is the most likely cause of a menu item not working? I've tripple checked the main-routing.module.ts, the phonebook.component.html and the phonebook.component.ts and all seems to be fine. Also, if I enter the localhost:4200/app/main/phonebook url manually, it loads/redirects to the dashboard page.

Thanks for your help!

Showing 1 to 10 of 19 entries