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 8927161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:09:24+00:00 2026-06-15T08:09:24+00:00

I have a ASP.NET MVC app running over IIS 7.5 . Forms Authenticated enabled

  • 0

I have a ASP.NET MVC app running over IIS 7.5 .
Forms Authenticated enabled

I can access the login page. (Which means that route is ok) but when I log in the app should send a post data to http://localhost/tgpwebged/Account/Login to authenticate the user.

The problem is that my application is looking for /Account/Login in http://localhost/Account/Login (This is not the path).

I am trying without success change this behavior.

This is my route.config

routes.MapRoute(
            name: "Default",
            url: "{controller}/{action}/{id}",
            defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional }

web.config

<authentication mode="Forms">
  <forms loginUrl="Account/Login"/>
</authentication>

View

<form method="post" action="/Account/Login">

Also IIS is set to accept Anonymous login for users to be able to access the login page.

This is the error message I am getting:

TTP Error 404.0 – Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Some detailed information:

Requested URL http://localhost:8081/Account/Login (right path: http://localhost:8081/tgpwebged/Account/Login )
Physical Path S:\Projects\Account\Login (Should be S:\Projects\tgpwebged\Account\Login)
Logon Method Anonymous
Logon User Anonymous

  • 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-15T08:09:25+00:00Added an answer on June 15, 2026 at 8:09 am

    The POST is going to wrong URL because that is what you have mentioned in the view. See

    <form method="post" action="/Account/Login">
    

    This would always post to <host name>/Account/Login

    Try to give either relative path (or substitute absolute path using ResolveUrl method) – for example, in aspx view, you can use

    <form method="post" action='<%= this.ResolveUrl("~/Account/Login") %>' >
    

    In razor (cshtml) view, you can try (untested)

    <form method="post" action='@Url.Content("~/Account/Login")' >
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several ASP.NET MVC 3 apps running on IIS 6 with separate app
I have an asp.net mvc app running on a local iis website that is
I have an ASP.NET MVC app and I want to add to each page
I have an ASP.NET MVC 3 app hosted on IIS. This app is using
I have an asp.net mvc 2 app. I need to display the same page
In my ASP.NET MVC app, I have a fairly complex edit page which combines
I have a small asp.net mvc app running on WIN2k3 and IIS6. I'm using
I have this web app that is running ASP .NET MVC 1.0 with LINQ
I have an asp.net MVC web app running on mod-mono under Apache2 on Ubuntu
I have an ASP.NET MVC 1.0 application running on Windows Server 2003 IIS 6.0.

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.