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

  • SEARCH
  • Home
  • 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 6755339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:23:16+00:00 2026-05-26T13:23:16+00:00

My Error is as follows: Server Error in ‘/’ Application. The view ‘Login’ or

  • 0

My Error is as follows:

Server Error in ‘/’ Application.

The view ‘Login’ or its master was not found or no view engine supports the searched locations. The following locations were searched:

~/Views/User/Login.aspx
~/Views/User/Login.ascx
~/Views/Shared/Login.aspx
~/Views/Shared/Login.ascx
~/Views/User/Login.cshtml
~/Views/User/Login.vbhtml
~/Views/Shared/Login.cshtml
~/Views/Shared/Login.vbhtml^

Views/Login/Login.cshtml:

@{
    ViewBag.Title = "Login";
}
@{
    if (!ViewData["uname"].Equals(null) )
    {
            <div>
            Username: @ViewData["uname"]
            @Session["uname"] = @ViewData["uname"]
            </div>
    }
}
<h2>Login</h2>
<h4>Username:</h4>
<input type="text" name="uname" value=" " />
<button />

Controllers/Usercontroller.cs:

 public class UserController : Controller
    {
        //
        // GET: /User/

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult Login()
        {
            return View();
        }

    }

Global.asax.cs(only the method):

public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                "Default", // Route name
                "{controller}/{action}/{id}", // URL with parameters
                //new { controller = "Product", action = "List", id = UrlParameter.Optional } // Parameter defaults
                   new { controller = "User", action = "Login", id = UrlParameter.Optional }

                );

        }
  • 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-05-26T13:23:17+00:00Added an answer on May 26, 2026 at 1:23 pm

    You say your view is in Views/Login folder, but it should be in the Views/User folder.

    It’s found in the following way Views/<ControllerName>/<ActionName>.cshtml.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The exact error is as follows Could not load file or assembly 'Microsoft.SqlServer.Replication, Version=9.0.242.0,
Code is as follows but I get a ytplayer is not defined error. Is
after executing post method on the server i get this error: HTTP/1.1 302 Found,
Error: End tag for 'optgroup' which is not finished. You have probably failed to
I have setup custom error as follows.. protected void Application_Error(Object sender, EventArgs e) {
Assume a table definition in SQL Server as follows: CREATE TABLE MyTable ( Id
I'm on SQL Server 2005 and I am getting an error which I am
I get this error on the server. I cannot replicate this on my development
The situation is as follows: I have an internal server running some WCF services,
I tried to use php mailer but errors as follows. SMTP -> FROM SERVER:

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.