Project hosting in IIS

Posted on 2011-10-16
Last Modified: 2012-06-21
Hi guys...

I have a .net website project, say Project1. The path of this project in my system is: d:\project

The folders inside my project (d:\project) is project and project.suo which is a solution file.

Now if I want to host my project in IIS, I have to give my virtual path upto d:\project\project.

Now , I have created a new project in the same solution called project2. Now the folders in my path d:\project are project, project2 and project.sln

project2 is also a separate website.

So, do I need to give a separate virtual directory for project2 also, to make it run ?

Can't I use the same virtual directory for Project by placing the Project2 inside Project1?

 I tried it. But I am getting an error. Please see the attached image

Actual my requirement is:

I use Actual directory authentication to see the web pages in project. There will be link on master page of Project to go to Project2 where I should not ask the user to enter the activedirectory credentials to log on ?

Is it  possible.

If so, how ? Please help me in this.

Question by:rakhy_rakey
    LVL 12

    Accepted Solution

    the error you sent only says (in plain english) "you cant see the actual error from where you are..."
    to see the actual error , if you have rdp access to the hosting server, then browse locally ON THE SERVER to the web site so you'll see the actual error and not the one above which says nothing. if not, then you'll need to create custom error handling that will deliver the error message
    now for the other questions, you can have as many sub directories in a single web site, so placing project2 inside project1 will work, but it is the same web-site (only project1's web-config will apply, and project1's dat forlder, bin folder abd other folders) so if you NEED them to be separate, you have to create virtual directories for both, if not then consider working to merge the two into 1 web site.

    Author Comment

    Thank you ErezMor for the reply....

    I will follow either one of the following options:

    1. Create the new project in a new solution


    Create a sub directory or Sub folder to hold my project2 web pages which will have complete new master pages and new content pages that does not match with any of the project1 pages as per my requirement.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
    I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now