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

  • Home
  • SEARCH
  • 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 305349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:21:55+00:00 2026-05-12T07:21:55+00:00

I have IIS installed on a server configured with asp.net 2.0 and a directory

  • 0

I have IIS installed on a server configured with asp.net 2.0 and a directory located at C:/Inetpub/wwwroot/application. I also got an automated process for zipping up an asp.net web application, scp’ing that .zip file to said server, blowing away the previous contents of the application/ directory, and unzipping the .zip file there, and making appropriate changes to web.config. It works great in all cases but one.

If I’m dealing with a fresh windows image that I’ve been given, I have to manually Remote Desktop in to that machine, open the IIS management console, right click on the application/ directory, click Properties, and on the Directory tab, and under Application settings click the Create button.

This is great and convenient at all, except that I’d like to fully automate the process so I can do it completely headless from start to finish each time. I looked at some various scripts that are apparently available for IIS administration, but I didn’t see anything that would let me manipulate a directory in such away.

Two questions:

1) How would one do this to a directory through the command line instead of through dialog boxes

2) What exactly does “Create”‘ing an application mean in this case to IIS. That the ASP.NET worker process just has permission to execute in this directory?

Thanks in advance.

  • 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-12T07:21:55+00:00Added an answer on May 12, 2026 at 7:21 am

    If you create a VBS file, this should help you create a virtual dir

    'Using IIS Administration object , turn on script/execute permissions and define the virtual directory as an 'in-process application. 
    Set objIIS  = GetObject( "IIS://localhost/W3SVC/1/Root" )
    Set vDirObj = objIIS.Create( "IISWebVirtualDir", vDirName )
    
    vDirObj.Path                  = vDirPath
    vDirObj.AuthNTLM              = True
    vDirObj.AccessRead            = True
    vDirObj.AccessWrite           = True 
    vDirObj.AccessScript          = True
    vDirObj.AccessExecute         = True
    vDirObj.AuthAnonymous         = True
    vDirObj.AnonymousPasswordSync = True
    vDirObj.EnableDefaultDoc = True
    vDirObj.DefaultDoc = "default.aspx"
    vDirObj.AppCreate True
    vDirObj.SetInfo 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone explain how the ASP.NET Web Development Server work? I don't have IIS
Hi guys i am new to Sitecore and asp.net and iis. I have installed
We have deployed a .net 4 asp.net site on IIS 6.0. Default.aspx is configured
I have standard ASP.NET 4 application. Inside this application there are also few razor
IIS is already installed on my server. I have configured WAMP to listen port
I have a Windows 2003 Server with IIS, I installed VisualSVN Server on it.
I have classic ASP running on IIS 7. Even though I configured the ASP
I have an ASP.NET MVC web application which is hosted by an external provider,
I have an intranet ASP.NET web application in which I need to get the
I have an IIS7.5 web-site, on Windows Server 2008, with an ASP.NET MVC2 web-site

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.