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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:27:37+00:00 2026-05-16T05:27:37+00:00

I have a new MVC 2 site that has been working fine on my

  • 0

I have a new MVC 2 site that has been working fine on my local box but has a path issue when published to an IIS 7.5 server. The site pulls up fine, navigation links such as

<ul id="menu">              
      <li><%: Html.ActionLink("Home", "Index", "Home")%></li>
      <li><%: Html.ActionLink("Search", "Index", "Search")%></li>
      <li><%: Html.ActionLink("Help", "About", "Home")%></li>

work just fine. However, when trying to load a partial view with jQuery via code like this

<p>
    <input type="submit" value="Search Alumni Directory" onclick='loadSearchResults( )' />
</p>

<script type="text/javascript">

    function loadSearchResults(val) {

        var formData = $("#search-form").serializeArray(); // muy importante

        $('div.search-results').load('/Search/LoadResults/', formData, function () {
            $('div.search-results-pending').show().delay(1000).hide(500);
            $('div.search-instructions').hide();
            $('div.search-results').show('slow');
         });

    }

</script> 

I get a 404 error because the path is

http://test-alumni.indiana.edu/Search/LoadResults

instead of

http://test-alumni.indiana.edu/OnlineDirectory/Search/LoadResults

adding ‘/OnlineDirectory’ to the path in my load function solves the problem but it does not seem like I should have to do this. I am publishing to a directory that is configured as an application. Any thoughts?

  • 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-16T05:27:38+00:00Added an answer on May 16, 2026 at 5:27 am

    That’s because the browser is resolving the “/” path based on the hostname, test-alumni.indiana.edu. If your page is relative to /OnlineDirectory, try it without the “/” in front of “Search”.

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

Sidebar

Related Questions

i have been working on a new .net MVC site and have integrated some
I have a question that has pretty much been asked here: asp.net mvc Html.ActionLink()
I have a very basic site that works fine on its own but when
I currently have an ASP .NET MVC site that has two domains pointing to
I have started a new mvc project and clicked on project\properties\web - use local
I am new to MVC and have a grasp of the basic model, but
I have a new solution that is an ASP.NET MVC 2.0 application. I have
I am new to MVC and facing one issue. I have a xml file
i have some html files as part of a regular website that has been
I've created a ASP.Net MVC 4 web site that has several custom routes which

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.