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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:32:24+00:00 2026-05-31T21:32:24+00:00

I have an MVC4 web application In setting it up on IIS7.5 I added

  • 0

I have an MVC4 web application

In setting it up on IIS7.5 I added the application to the “Default Website” and set up a virtual directory under http://localhost/myApplication

However, this forced me to change many of my controller calls (specifically js ajax calls) which I previously called in Cassini like “/Home/Index”, I now had to change them to “/myApplication/Home/Index” for them to work on my local IIS.

NOW, when I publish it to a remote hosting server I have to change it BACK to “/Home/Index” for it to work.

This cannot be the most productive way to traverse the development -> testing -> production cycle.. What step am I missing?

I tried to create the applications virtual directory on on just http://localhost/ without appending the application name so that I can call “/Home/Index” at all three stages but it complains that http://localhost/ is already mapped to inetpub/wwwroot.

Thanks for your time.

  • 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-31T21:32:25+00:00Added an answer on May 31, 2026 at 9:32 pm

    The steps are like this:

    1. Publish your website to a new folder in inetpub/wwwroot (or the place where your applications are kept) like “inetpub/wwwroot/myapp”
    2. Go to IIS management, create a new web-site, assign it any free port (like 11001 or something, > 1024 at least) and point it to a folder from the step 1. Bind it to all IP addresses available or to 127.0.0.1
    3. Start the web-site.
    4. Access it using http://localhost:11001/ (or any other port you’ve set)

    Problem is that by default any browser uses port 80 to request a web page, and that port is taken by the default web-site. You have to manually override it or create a site on another port. IIS usually warns you about port collisions.

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

Sidebar

Related Questions

Have a n-tire web application and search often times out after 30 secs. How
Environment In my solution I have three projects, they are: Web (Asp.net MVC4) Model
I used mvc 4.0 to develop my web application, I have created a pager
I have been writing an application using ASP.Net MVC4, where the majority of the
If you create a new MVC4 web application with the Internet Application Project Template
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
I have an MVC 4 application that I'm localizing. All the built-in resourcing and
I am struggeling... Is it safe to start developing with MVC4 Web Api (BETA)
I am not able to install web matrix 2 beta. I have MVC 4
I've got really used to developing views in MVC4 using Razor. But I have

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.