Base solution for your next web application
Open Closed

Error Login page #731


User avatar
0
andmattia created

Hi

I have a problem when login faild. The UI not intercept exception. If I start a project from temple it's works fine but I have do a lot off work with my module. I think is very stupid error but I don't find it!

I check the controller and it intercpet the login excepion and send to browser:

default: throw CreateExceptionForFailedLoginAttempt(loginResult.Result, usernameOrEmailAddress, tenancyName);

but ui not render exception! Abp.UI.UserFriendlyException: [LoginFailed] on my console error 500 and not call

.done(function (data) { abp.ajax.handleResponse(data, userOptions, $dfd);

Where can I try to search e possibile mis configuration?

thk

Mattia


3 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Can you check if customErrors is On in your web.config file. ABP only handles exceptions if it's On (see docs: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Handling-Exceptions#DocEnableErrorHandling">http://www.aspnetboilerplate.com/Pages/ ... orHandling</a>)

  • User Avatar
    0
    andmattia created

    Arg!!!

    I'm very stupid!!!

    I've disable custom error to investigate en IoC loop!!!

    Thk a lot Halil!

    Have a nice weekend!

    mat

  • User Avatar
    0
    hikalkan created
    Support Team

    You're welcome :)