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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:54:57+00:00 2026-05-30T00:54:57+00:00

I have a configuration page that needs to create a virtual directory under a

  • 0

I have a configuration page that needs to create a virtual directory under a new virtual application. The method for creating this directory is distinct for the version of IIS, with the IIS 7 installs using the newer management controls. The IIS 7 installs create the virtual directory and add the expected asp.net application extensions. The following code, used for IIS 6, does create the virtual directory, however it does not add the asp.net application extensions as you can see in the image below. How do I modify my code to ensure the expected asp.net application extensions get added?

enter image description here

private void AddDirIis6(DirectoryEntry entry)
{
    var child = entry.Children.Add("EditorControls", "IIsWebVirtualDir");
    child.Properties["Path"][0] = "directory\EditorControls");

    child.CommitChanges();
    entry.CommitChanges();
}
  • 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-30T00:55:00+00:00Added an answer on May 30, 2026 at 12:55 am

    It looks like the script mappings are missing for your site. You can either run

    aspnet_regiis -s W3SVC/1/ROOT/SampleApp1

    with your application specified for the last parameter instead of the sample one or

    aspnet_regiis -i

    Be aware that -i installs the script maps for ALL sites on IIS.

    You will need to execute the aspnet_regiis for the correct version of the framework you are using. Instructions to do this are in the instructions for the aspnet_regiis tool:
    http://msdn.microsoft.com/en-us/library/k6h9cz8h(v=vs.100).aspx

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

Sidebar

Related Questions

I have developed an ASP.NET application that includes a WCF service. This service needs
I have an ASP.NET page that needs to make calls to multiple web services
Just say I have a file configuration.xml that a php script needs to parse
I have configuration values saved in an app.config . I want to create a
I'm working in xmldataprovider and we have configuration value source this value may be
I have some configuration data that I'd like to model in code as so:
I have some configuration data in a config file that I read off disk
I have a configuration file that I consider to be my base configuration. I'd
In my DefaultRegistry I have this configuration: ForRequestedType<INHUnitOfWork>().CacheBy(InstanceScope.HttpContext) .TheDefault.Is.OfConcreteType<NHibernateUnitOfWork>(); At some point in the
I have a classic ASP website (yes they still exist) that needs to call

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.