Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9114537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:13:25+00:00 2026-06-17T04:13:25+00:00

I have a User area and inside this I have the following registered: context.MapRoute(DefaultRedirect,

  • 0

I have a User area and inside this I have the following registered:

context.MapRoute("DefaultRedirect",
    "",
    new { controller = "Account", action = "Login" }
);  

When I use routeDebug it tells me that when I connect to my site http://www.xxx.com then it will try to call

area = User, controller = Account, action = Login

When I connect directly using: http://www.xxx.com/User/Account/Login my login page appears.

When I don’t use routeDebug and connect to my site http://www.xxx.com then I get an error message saying:

Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /

Here’s my controller action method:

   public class AccountController : Controller
    {
        //
        // GET: /Account/Login

        [AllowAnonymous]
        public ActionResult Login()
        {
            ViewBag.ReturnUrl = "xx";
            return View("~/Areas/User/Views/Account/Login.cshtml");
        }

I am very confused as routeDebug appears to show I am going to the right controller and action however when I don’t use that and place a breakpoint it does not seem to go to the controller action.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:13:26+00:00Added an answer on June 17, 2026 at 4:13 am

    if this controller is inside the same area i think you just can use

    [AllowAnonymous]
        public ActionResult Login()
        {
            ViewBag.ReturnUrl = "xx";
            return View();
        }
    

    Either way if you have only the views on a different areas you can use

    return View("~/Views/YourArea/YourController/YourView.aspx");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented endless scrolling to my website user account area and before more
I have an area where the user can draw using a finger. This area
I have a User Control added to a Canvas. In another area of the
I have a text area where user can write his SMS. You all know
In my application I have large area (≈5000x5000pts) and I must allow user to
I have the following imagr. What this basically represents is a rota. What I
I have the following XAML inside a 4 Row by 2 column grid. The
I have this following mvc application The problem is when Im trying to assign
I have a multi-user eclipse (3.4) installation with a shared master configuration area. Users
I have user (not administrator) access to some external JMS. I'm failing to view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.