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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:25:46+00:00 2026-06-18T04:25:46+00:00

UPDATED – pointed to the wrong directory at first. Thanks for the tip Wiktor

  • 0

UPDATED – pointed to the wrong directory at first. Thanks for the tip Wiktor. Still not succeeded in running the MVC4 application via

I am trying (for a while now.. :)) to set up a simulated multi tenant webapp on my development PC. I learned that this is not possible with visual studio’s internal webserver, so I am trying to set up IIS.

I added the fake tenants in my hosts.

127.0.0.1 localhost
127.0.0.1 tenant1.mydomain.com
127.0.0.1 tenant2.mydomain.com

In IIS I made a new website test(port 8081), and just pointed it to C:\Azure\Websites\. In that directory I added a Hello World html file to see if this bit works.

  • I navigated to localhost:8081 => Hello world
  • I navigated to tenant1.mydomain.com:8081 => Hello world.

Cool, first proof of life.


Next step: getting this working with a MVC4 webapp created in VS2012.

I started a new MVC4 webapp and stored it in:
C:\Azure\Websites\MvcApplication1

I just use the default generated website for the test, so I pressed F5 and verified the site is opened in firefox. So the goal is to get this working from IIS.

  • Created a new website test2 (port 8082)
  • Set test2 app pool to .net4.0
  • Point the physical directory to C:\Azure\Websites\MvcApplication1\MvcApplication1\
  • Navigate to localhost:8082

HTTP Error 500.21 – Internal Server Error
Handler “ExtensionlessUrlHandler-Integrated-4.0” has a bad module “ManagedPipelineHandler” in its module list

Uninstalled ASP.NET and reinstalled it again. Same results.

when I change web.config from

preCondition="classicMode,runtimeVersionv4.0,bitness32"

to

preCondition="integratedMode,runtimeVersionv4.0,bitness32"

Then I get this error:

HTTP Error 404.2 – Not Found
The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.

Can I stress the fact that I am a n00b regarding IIS configuration… 🙂

Any ideas?

  • 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-18T04:25:47+00:00Added an answer on June 18, 2026 at 4:25 am

    ISAPI and CGI Restictions in IIS:

    • Add isapi dll for .net 4 32bit
    • Add isapi dll for .net 4 64bit

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll

    And it works. Finally!

    Thanks Wiktor

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

Sidebar

Related Questions

---updated fiddle still not functioning www.jsfiddle.net/atZPn/5 Trying to get the text in the input
(Updated, please look at the EDIT, thanks!) First I would like to point that
UPDATED QUESTION Since the ctor is not supported by .NETCF (public FileStream(IntPtr handle, FileAccess
( Updated Question ) First, I think that \n is equivalent to System.getProperty(line.separator) I
UPDATED : I understood I should not use a DbSet so I changed the
UPDATED: This is totally wrong assumption. I retested it and sure enough I was
UPDATED I have an application that updates a combobox based on the values selected
Updated with latest code: Here is the latest code, still has 2 buttons and
UPDATED: I have a desktop application, with the following components interacting: Winforms UI. Service
Updated question with additional info as solution was not applicable. Sorry, I will 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.