Base solution for your next web application
Open Closed

Version 5.5 returns JSON after login with default code #5241


User avatar
0
ashgadala created

Hi support,

I downloaded 5.5 version and upgraded the xamarin packages.

That said, Build was successful and upon trying to login the page redirects me to the login page <a class="postlink" href="http://localhost:62114/Account/Login">http://localhost:62114/Account/Login</a> and on the screen is below. UI is not loading

{"result":null,"targetUrl":"/Account/ResetPassword?UserId=1&ResetCode=E8582xx47F&ReturnUrl=%2FApp","success":true,"error":null,"unAuthorizedRequest":false,"__abp":true}

It looks like the default user is successfully logged in. Is there any thing that i need to load back the UI instead of Json.


8 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    @ashgadala is this happening on the web application ? If so, could you check if there are any javascript errors on the browser console when you are on login page ?

    If you see javascript errors, please try to run your project as explained here <a class="postlink" href="https://aspnetzero.com/Documents/Getting-Started-Core#run-the-project">https://aspnetzero.com/Documents/Gettin ... he-project</a>. I assume you are using ASP.NET Core & jQuery version.

  • User Avatar
    0
    ashgadala created

    Thank you so much when i try to run the getting started page Correct I am using core with jQuery and i was looking at the MVC :D documentation.

  • User Avatar
    0
    ashgadala created

    Please ignore...I got this sorted out.It looks like there was na issue with my yarn.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Glad you solved it :)

  • User Avatar
    0
    cellero created

    I am encountering this same issue. Can you share what the solution was.

    .net Core 2.1 MVC v5.5.0

    Thank you

  • User Avatar
    0
    cellero created

    Ok, problem solved. I was using a new VM and it did not have node.js installed.

    My mistake!

  • User Avatar
    0
    [email protected] created

    I am experiencing this issue when I publish the site to production running under IIS.

    Steps taken:

    1. Publish using dotnet publish command
    2. Copy to web server
    3. Configure IIS
    4. Provide login details to ASP NET ZERO.

    Result:

    {"result":null,"targetUrl":null,"success":false,"error":{"code":0,"message":"Login failed!","details":"Invalid user name or password","validationErrors":null},"unAuthorizedRequest":false,"__abp":true}

    I assume that you are not supposed to run the yarn job after publish as that doesn't make sense to me.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Continued <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/1277#issuecomment-398361009">https://github.com/aspnetzero/aspnet-ze ... -398361009</a>.