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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:20:42+00:00 2026-05-21T17:20:42+00:00

I have two ASP.Net MVC applications, let’s say Site1 and Site2 . For now,

  • 0

I have two ASP.Net MVC applications, let’s say Site1 and Site2.

For now, I can successfully access Site1 by visiting http://localhost/

Here’s my IIS Express applicationhost.config file:

<sites>
   <site name="Site1" id="1" serverAutoStart="true">
       <application path="/">
           <virtualDirectory path="/" physicalPath="%IIS_USER_HOME%\wwwroot\Site1" />
       </application>
       <bindings>
           <binding protocol="http" bindingInformation=":80:localhost" />
           <binding protocol="http" bindingInformation=":80:10.49.0.137" />
       </bindings>
   </site>
   <siteDefaults>
       <logFile logFormat="W3C" directory="%IIS_USER_HOME%\logs" />
       <traceFailedRequestsLogging directory="%IIS_USER_HOME%\logs\tracelogfiles" enabled="false" maxLogFileSizeKB="1024" />
   </siteDefaults>
   <applicationDefaults applicationPool="IISExpressAppPool" />
   <virtualDirectoryDefaults allowSubDirConfig="true" />
</sites>

What I want now is:

  • Access Site1 on http://localhost/Site1
  • Place Site2 on %IIS_USER_HOME%\wwwroot\Site2
  • Access Site2 on http.//localhost/Site2

How should I change the above applicationhost.config to achieve what I want?

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-05-21T17:20:42+00:00Added an answer on May 21, 2026 at 5:20 pm

    change your applicationhost.config as shown below and restart IIS Express.

    <sites>    
      <site name="Site1" id="1" serverAutoStart="true">
       <application path="/">            
          <virtualDirectory path="/" physicalPath="%IIS_USER_HOME%\wwwroot\" />
       </application>        
       <application path="/site1">            
          <virtualDirectory path="/" physicalPath="%IIS_USER_HOME%\wwwroot\Site1" />
       </application>        
       <application path="/site2">            
          <virtualDirectory path="/" physicalPath="%IIS_USER_HOME%\wwwroot\Site2" />
       </application>        
       <bindings>            
         <binding protocol="http" bindingInformation=":80:localhost" />            
         <binding protocol="http" bindingInformation=":80:10.49.0.137" />        
       </bindings>    
      </site>    
      <siteDefaults>        
        <logFile logFormat="W3C" directory="%IIS_USER_HOME%\logs" />        
        <traceFailedRequestsLogging directory="%IIS_USER_HOME%\logs\tracelogfiles" enabled="false" maxLogFileSizeKB="1024" />    
      </siteDefaults>    
      <applicationDefaults applicationPool="IISExpressAppPool" />    
      <virtualDirectoryDefaults allowSubDirConfig="true" /> 
    </sites>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two ASP.NET MVC web applications. One of them logs unhandled exceptions to
I have an ASP.NET MVC application, and the visitors can select from two languages
I have two applications using ASP.NET MVC, each with multiple controllers. I want to
In the asp.net mvc 3 application I have two views which have the same
I have two instances of an Address.ascx control in an ASP.NET MVC page. <h1>Shipping
I have two .ascx files in the same folder in an ASP.NET MVC project.
I have a Solution with several projects in it, including two asp.net mvc projects
I have two projects.One project is build in MVC asp.net and the other project
I have two ASP.NET sites (they can not run in the same process) and
I've always wondered, lets say you have two asp.net websites running in the same

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.