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

I am currently working on MVC4 SinglePage Application. I have a Web Api method
I have asp.net mvc 4 web application project on my server in IIS Directory.
I have a MVC4 application that is calling Amazon Web Services. The amazon service
We have a Web API (MVC4) application that returns images from the database. I
I have a MVC4 web application that use Entity Framework 5.0 Code First. In
I have created a custom razor helper in my MVC4 Web application that I
I have a webapi project mvc4 rc and a mvc4 rc web application deployed
I have a layered web application that I built with ASP.NET MVC 4, WebAPI
I have trying to learn MVC4 Web API. I am running my project from
I have a c# mvc4 twitter bootstap appharbor web site. Currently I use Vimeo

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.