Base solution for your next web application

Activities of "bartkoolhaas"

Yes I did, thanks! I didnt see how to delete the question, so marked it as closed.

Hi @ismcagdas,

I hadn't, but I just did, and it then throws an error at me (after saying "Build succeeded"):

"No DbContext was found in assembly 'Acme.PhoneBookDemo.Web.Host". Ensure that you are using the correct assembly and that the type is neither abstract nor generic."

Hmmmm, I've even freshly downloaded and installed the whole project, updated the database after setting multi tennacy to false, yet when pressing the IIS Express button, it shows what looks like a multi tenant log-in, and not the swagger page the course instructor ends up with.

I can however manually change the url to reflect and end up at the Swagger page; see screenshot below. However, I am not sure whether I have now successfully switched off multi tenancy, and why my results are diffrent from the instruction video....

OK, so... How am I supposed to log in, and with what credentials? I have found a "public class HomeController where Index() returns a View(). Do I need to change anything there?

And then use my asp.net account log-in credentials? It just throws an error at me:

ahhhh, finally; it works, txs! I now see this is only mentioned in the course quite a bit later. Is it because of a diffrent version?

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

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

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

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?

Showing 1 to 10 of 14 entries