Base solution for your next web application

Activities of "bcaa4567"

Hi all,

I was trying to use the web.public project to host the Angular 4 SPA and ran into a few issues. The template I downloaded was ASPNet Core & Angular 4.4.0.

First problem was that I encountered the following error in the log file when I tried to login:

...
Service 'xxxx.Web.Authentication.JwtBearer.TokenAuthConfiguration' which was not registered.

Castle.MicroKernel.Handlers.HandlerException: Can't create component 'xxx.Web.Controllers.TokenAuthController' as it has dependencies to be satisfied.

...

So I added the following line in the startup.cs:

app.ApplicationServices.GetRequiredService<TokenAuthConfiguration>();

The error message changed to:

Castle.MicroKernel.ComponentNotFoundException: No component for supporting the service xxx.Web.Authentication.JwtBearer.TokenAuthConfiguration was found

I am not sure how to proceed. What do I miss?

Thank you in advance!

derek

Hi

I am wondering what is the best way to show a menu for all tenants but the host. Thanks!

derek

Hi all,

I am getting the following when I am trying to run my own unit test.

I have been able to run all the other unit tests that come with the project. It just failed to run for my own.

I had checked the following:

  1. my xxxAppService class is public in the Application project
  2. all my entities declarations are public in the Core project.
  3. I can run update-database to create tables in the SQL database.
  4. I can see my service in the swagger. But not able to call it, it display internal server error. and it won't even hit the break point in the service constructor. ( I guess it has the same error as the unit test)

I run out of idea to try. Anything will help!

thanks!

derek


xxxAppService' is waiting for the following dependencies:

  • Service 'Abp.Domain.Repositories.IRepository`1[[xxx.xxx.Area, xxx.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered. ....

I am getting the following error when run the xxx.web.public project.

It happens to freshly downloaded template after successfully run the Update-Database command.

The project type is ASPNET CORE/ANGULAR v4.3.1 with DOTNET Framework.


An unhandled exception occurred while processing the request.

AbpException: No language defined in this application. Abp.Localization.LanguageManager.GetCurrentLanguage()

Stack Query Cookies Headers AbpException: No language defined in this application. Abp.Localization.LanguageManager.GetCurrentLanguage() Abp.Localization.LanguageManager.get_CurrentLanguage() Rms.Web.Public.Views.Shared.Components.Header.HeaderViewComponent+<InvokeAsync>d__9.MoveNext() in HeaderViewComponent.cs + var headerModel = new HeaderViewModel System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker+<InvokeAsyncCore>d__6.MoveNext() System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

................

Hi all,

I downloaded the ASPNET Zero for .NET Core Angular 4.0.0, NET Framework 4.6.1. And could not get the signalR working.

I was getting 400 bad request for the HTTP GET <a class="postlink" href="http://localhost:22742/signalr/hubs?=1496705236059">http://localhost:22742/signalr/hubs?=1496705236059</a> request.

I am wondering if that is expected, if so how to fix it.

Thanks!

derek

Hi all,

I searched around and found the following article related to DotNet Core Azure Active Directory integration.

<a class="postlink" href="https://azure.microsoft.com/en-us/resources/samples/active-directory-dotnet-webapp-openidconnect-aspnetcore/">https://azure.microsoft.com/en-us/resou ... spnetcore/</a>

However, I am not sure how to integrate it to ABP. Could someone point me any existing documentation get started?

Thanks!

derek

Showing 1 to 6 of 6 entries