Disfigured ASP.NET routes

Asked

Viewed 104 times

3

From trying and searching I think I’ve disfigured something important, so I can’t make the routes work.

In this image it appears that the form is being posted to the Loginprofessional controller in the Logon action. I am not using Renderbody to load this login form, the idea is to use only the controller action without using view, because it is already in the correct location

Nesta imagem aparece que o form esta como post enviando para o controller LoginProfessional na action Logon. Eu não estou usando o RenderBody para carregar este form de login, a idéia é usar somente a action do controller sem precisar usar view, pois ela já esta no local correto.

It appears that there is an Action Logon in the Loginprofessional controller Aqui aparece que existe a Action Logon no controller LoginProfessional

Here the error and the URL Aqui o erro e a url

Routes file, the home page of the site enters normally, but I want to access the controller Loginprofessional and after login done, redirect to within an Area.

  • You changed the route? because you really got it wrong !!! by the drawings, also pass in the question the route file [RouteConfig]. For the drawing be see the route file would be /Home/Logon

  • How is the Registration method of your Global.asax file?

  • @Fccdias Edited with Routeconfig print....

  • @moustache this in the original version.

  • That’s what I told you is /Home/Logon, at least by the images ...

1 answer

2


The Controller is not /LoginProfissional/Logon. IS /Home/Logon.

Create a LoginProfissionalController or use the route /Home/Logon.

  • I already have this controller "Loginprofessionalcontroller"

  • From the images, it is not being used. The implementation of Logon is in the HomeController. So, /Home/Logon works.

  • What image do you see this in? For here in the project is the "Loginprofessionalcontroller"

  • This: http://i.stack.Imgur.com/sa9hD.png. The method Login is in the HomeController, and not in the LoginProfissionalController, as it should be, from what you described.

  • 1

    You’re the guy! Hehe really worked, my attention span! Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.