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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:50:45+00:00 2026-06-10T20:50:45+00:00

I have a MVC web application. Lets call it Parent website. In order to

  • 0

I have a MVC web application. Lets call it “Parent” website. In order to set up the website on my local machine, I go to IIS, create a new website and in the “edit website” screen, in “physical path” I give the location of the folder on my hard drive. That website works fine with few modifications with application pool, port number etc..

What I am trying to do after that is – to set up another “Child” website using the same code base. This child website runs off a single controller, few specific models, few specific views, but common service layer to parent website above.
When I set up this new child website on my local machine, I would like it to act as a stand alone website, just picking up parts of the main code base that are relevant to its functionality ONLY. How do I do this in a efficient way so I have both Parent and Child websites running separately on IIS on my local machine with one common code base.

This is what I tried but got only so far.. not sure if this even the right direction.

I tried creating a new MVC “Area” for this child site, for example, I moved the ChildController, ChildModels and ChildViews into this new ChildArea. I was hoping this would somehow make it easy to separate parent and child websites and host them locally. In the main folder structure, (Parent), I have site.master page that works well for Parent website already hosted and working well. I also have a new site.master inside the new MVC area that I need the child website to take for display.

I need some help and guidance on how I can achieve this. Thanks in advance for comments, solutions, feedback.

enter image description here

  • 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-10T20:50:47+00:00Added an answer on June 10, 2026 at 8:50 pm

    Create a solution with 3 projects.

    1. Parent Website
    2. Child Website
    3. A DLL project that contains shared code.

    Move the common components from your parent site into the Shared project.

    The Parent site and the Child would both reference the 3rd common code library.

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

Sidebar

Related Questions

I have asp.net mvc 4 web application project on my server in IIS Directory.
I have an ASP.NET MVC web application running in IIS as a subweb; let's
we have a J2EE web application usig Spring MVC. We have a new requirement
I have developed a MVC web application with ASP.NET MVC and im just wondering
I have a Asp.net MVC web application, containing mostly text. I want to put
I have a Clustered Windows Hosting site which currently hosts an MVC Web Application
I have one question; In my ASP.NET MVC web application have to do certain
Here's what I'm trying to do. I have an ASP.NET MVC web application, where
I have a localized spring mvc based web application, that has an externalized messages
I have created blank Asp.Net-MVC 3 web application and want to write my own

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.