Open Closed

MVC, Tier Application #345


0
kkngan1978 created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • **ABP Framework version:**v3.0.5.0
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:
  • I just tempting to created a tiered application with Web API implementation. Non tier application is working fines.

Question Is it causing by I install different version of Redis?

  1. Why the tier application is behave differently between non tier application? Im using this https://github.com/microsoftarchive/redis/releases/tag/win-3.2.100 instead of redis IO as redis IO cant install over windows.
  2. From the attached tier images, is it mention that my Identity Server is not running? as it different from non tier.
  3. Can I using AWS Redis Server for running?
  4. Do you have any documentation specifically for tier application except for https://docs.abp.io/en/commercial/latest/getting-started?UI=NG&DB=Mongo&Tiered=Yes ?

<br>

  • Tier Application

Non Tier Application

  1. If I running Tier application For Web Project after Identity Server had run, and Http.API host had run. Im hitting this error

IOException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request.. System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.GetResult(short token) System.Net.Security.SslStream.<FillBufferAsync>g__InternalFillBufferAsync|215_0<TReadAdapter>(TReadAdapter adap, ValueTask<int> task, int min, int initial) System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable<TResult>+ConfiguredValueTaskAwaiter.GetResult() System.Net.Security.SslStream.ReadAsyncInternal<TReadAdapter>(TReadAdapter adapter, Memory<byte> buffer) System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable<TResult>+ConfiguredValueTaskAwaiter.GetResult() System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)

Show raw exception details TaskCanceledException: The operation was canceled. System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken) System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, bool doRequestAuth, CancellationToken cancellationToken) System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, bool doRequestAuth, CancellationToken cancellationToken) System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task<HttpResponseMessage> sendTask, HttpRequestMessage request, CancellationTokenSource cts, bool disposeCts) Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.RedeemAuthorizationCodeAsync(OpenIdConnectMessage tokenEndpointRequest) Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleRemoteAuthenticateAsync()

Show raw exception details Exception: An error was encountered while handling the remote login. Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>.HandleRequestAsync() Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)


13 Answer(s)
  • 0
    liangshiwei created
    Support Team

    Hi,

    I used redis on windows(https://github.com/microsoftarchive/redis/releases/tag/win-3.2.100) and tiered start template but can't reproduce your problem.

    Does it work fine if you use AWS Redis Server?

  • 0
    alper created
    Support Team

    closed due to inactivity...

  • 0
    Leaf created

    Hi Alper,

    I hit the same error in version 3.1.2.

    I can shared Github repository for solutions with you if you want to.

    Thanks Alper.

  • 0
    alper created
    Support Team

    @liangshiwei can you check out what's the issue?

  • 0
    liangshiwei created
    Support Team

    Yes , I can. @Leaf Could you share the github repository to me ? my email : [email protected]

  • 0
    Leaf created

    HI @liangshiwei,

    I added you in the repository. Please help to check and guid me for correct way.

    Between, I have also created a Tiedemo.SampleApp module. Dont mind please help to add the code for how to link up the menu to show in Main Solutions (Tiedemo).

    Thanks @liangshiwei

  • 0
    liangshiwei created
    Support Team

    First remove the following code in your TiedemoWebModule class.

    [DependsOn(typeof(AbpAccountPublicWebModule))]
    [DependsOn(typeof(AbpAccountPublicWebIdentityServerModule))]
    

    It works fine. About show the SampleApp module menus you can add module dependencies to the Tiedemo.

    1. add typeof(SampleAppApplicationModule) to TiedemoApplicationModule
    2. add typeof(SampleAppApplicationContractsModule) to TiedemoApplicationContractsModule
    3. add typeof(SampleAppDomainModule) to TiedemoDomainModule
    4. add typeof(SampleAppDomainSharedModule) to TiedemoDomainSharedModule
    5. add typeof(SampleAppEntityFrameworkCoreModule) to TiedemoEntityFrameworkCoreModule
    6. add typeof(SampleAppHttpApiModule) to TiedemoHttpApiModule
    7. add typeof(SampleAppHttpApiClientModule) to TiedemoHttpApiClientModule
    8. add typeof(SampleAppWebModule) to TiedemoWebModule

    NOTE: If your module have entities , you need add migration file.

    If you have the SampleApp permission, you will see the menus:

  • 0
    Leaf created

    Thanks @liangshiwei.

    Very details guideline and it is working fine now.

    Thank you.

  • 0
    Leaf created

    Hi @liangshiwei,

    I hit below error when logout.

  • 0
    Leaf created

    Hi @liangshiwei,

    Few questions here :

    Question 1 : when i login on to system, under my profile, how to remove the Sample App ?

    Question 2: when i click on Manage Your Profile, it will bring me to another Web tab shown as below. and the page got no others Menu but only Change Password & Setting.

  • 0
    Leaf created

    Hi @liangshiwei,

    Any update please ...

    Thank you.

  • 0
    liangshiwei created
    Support Team

    Hi @Leaf

    Please create a new question to discuss. thanks.

  • 0
    Leaf created

    Ok. created MVC, Tier Application Logout Issues. Thank you