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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:58:13+00:00 2026-06-04T22:58:13+00:00

i am creating a website on MVC3. I was using the default VS2010 web

  • 0

i am creating a website on MVC3. I was using the default VS2010 web server and my login page (using jquery.ajax) was working perfectly fine.

because of some specifications, i had to create an application in my localhost and start using my localhost web server.

thing is that for unknown reasons, my ajax call doesn’t even make it to my Action in my controller. It errors as soon as i click Login. i look at errorThrown property and is ‘undefined’. I haven’t modified at all my login code for at least 3 months, so, that’s out of the question. if i use development server it works just fine.

I read a couple of articles here , this one looked like my problem but the solution offered there is not working for me.

thanks

  • 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-04T22:58:14+00:00Added an answer on June 4, 2026 at 10:58 pm

    I guess you hardcoded the url in your AJAX request:

    $.ajax({
        url: '/somecontroller/someaction',
        ...
    });
    

    instead of using an url helper to generate it:

    $.ajax({
        url: '@Url.Action("someaction", "somecontroller")',
        ...
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a website in Ruby on Rails, where users can login using RESTful
I am creating a website using JavaScript/ASP.NET/C#/CSS/HTML/Compact SQL server. I have the majority of
I'm creating a website in C# using MVC3. The website is a client that
I'm creating a MVC3 web site, and I have place in the page where
I am creating a data driven website with mvc3 using EF and code first.
I'm creating a website using MVC3, I'm using the razor syntax to create the
I am currently creating a website and am having trouble using AJAX to post
I am working on creating website with Yii framework and I have a problem
When creating a website using Asp.Net and using controls such as the ListView is
I am creating a website and using Linq to SQl as a data access

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.