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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:38:05+00:00 2026-05-20T08:38:05+00:00

I have an ASP.Net project created by a team member on another computer. The

  • 0

I have an ASP.Net project created by a team member on another computer. The project references a virtual directory that exists on my computer but under a different localhost location.

Currently, the following error occurs when I try to open the project:

The local IIS URL http://localhost/foo/default.aspx specified for Web project foobar has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?
[Yes] [No]

So, there are two options:

  1. select yes: It creates the virtual directory that it thinks I need, which I don’t want to do. I already have a virtual directory somewhere else.
  2. select no: This isn’t an option, as the project opens, but without all the bells and whistles I know and love.

Where is the virtual directory location (in my case http://localhost/foo/default.aspx) specified within the project? Can I change this manually, say in a configuration file within the project, either before or after I open it? A configuration change seems more ideal than manually opening IIS to override a virtual directory path.

EDIT (solution): Buried in the comments below is the following answer (Thanks @Thyamine)

This can be configured in the foo.csproj file for the project.

Look for the lines:

<ProjectExtensions>
    <VisualStudio>
        <FlavorProperties GUID="{F00-000-000}">
            <WebProjectProperties>
                <UseIIS>True</UseIIS>
                <!-- ... -->
                <IISUrl>http://localhost/Foo/default.aspx</IISUrl> <!-- EDIT THIS LINE -->
                <!-- ... -->
            </WebProjectProperties>
        </FlavorProperties>
    </VisualStudio>
</ProjectExtensions>
  • 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-20T08:38:05+00:00Added an answer on May 20, 2026 at 8:38 am

    You could allow it to create the directory, then re-map it in IIS Manager to point to the directory you would prefer it to use.

    Or you could tell it not to map at all, and then manually create the virtual directory with IIS Manager to the directory you already have.

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

Sidebar

Related Questions

I have just created an ASP.NET C# project and a virtual directory for it
I have an ASP.NET MVC 3 project that I just created using the project
I have an ASP.NET project that I have created in Visual Studio 2010. So
I have created a paginatedList and pager for that for my ASP.NET MVC project.
I have a simple asp.net MVC4 / EF 4.1 project created with VS 2011,
I have created the following project structure for my new asp.net mvc project any
I have opened a sample ASP.NET MVC project. In HomeController I have created a
I have an ASP.NET project that contains many classes. I am thinking about creating
I have an ASP.Net project using AJAX that I am putting on a server
I have a ASP.Net project that is setup in such a way that it

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.