Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. IIS Configuration

IIS Configuration

Scheduled Pinned Locked Moved C#
workspacecsharpwindows-adminsecurityhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raygn2
    wrote on last edited by
    #1

    I am new to C# and I am looking at ways to write a IIS configuration dll. Would like the dll to create a new website outside of the root. something that i can point the directory to a new location and then create virtual directories on the main level as well as creating them down in subfolders and then setting some features on the virtual directory along with settings to some of the folders say turning one into an application. newsite - d:\mylocation - set basic auth - set permission to local logged in domain folder1 folder2 - set as application virtualdirectory1 virtualdirectory2 file2a file2b - set security permisions to not anonymous file2c folder3 folder4 file - change error page 402 and permisions I have all of these settings that I change when I setup this one site I know all the names and settings so they could be made hard coded except 6 things like the url, ip, port, root folder location for new site this will need to be passed into the program. Could someone point me in the right direction on this

    Y 1 Reply Last reply
    0
    • R raygn2

      I am new to C# and I am looking at ways to write a IIS configuration dll. Would like the dll to create a new website outside of the root. something that i can point the directory to a new location and then create virtual directories on the main level as well as creating them down in subfolders and then setting some features on the virtual directory along with settings to some of the folders say turning one into an application. newsite - d:\mylocation - set basic auth - set permission to local logged in domain folder1 folder2 - set as application virtualdirectory1 virtualdirectory2 file2a file2b - set security permisions to not anonymous file2c folder3 folder4 file - change error page 402 and permisions I have all of these settings that I change when I setup this one site I know all the names and settings so they could be made hard coded except 6 things like the url, ip, port, root folder location for new site this will need to be passed into the program. Could someone point me in the right direction on this

      Y Offline
      Y Offline
      Yitzchok Dev
      wrote on last edited by
      #2

      use WMI - Windows Management Instrumentation http://www.codeproject.com/csharp/wmi.asp

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups