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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:14:30+00:00 2026-06-07T19:14:30+00:00

I am using rake and albacore to build my .net ASP MVC project, however

  • 0

I am using rake and albacore to build my .net ASP MVC project, however one part I have not been able to automate so far is deploying the built project to IIS. Currently on developer machines I get the developers to manually create the websites and link them to a released output folder generated by the build.

However now that we have our CI box setup (Teamcity) I am needing to automate the setup of the website to IIS, so are there any rake tasks which can create a website on IIS? I remember seeing one a while back but cannot find it.

I can install the IIS 6 meta scripting stuff (cant remember its exact name) and any other iis plugins, the box currently runs IIS 7.5.

== Edit ==

The one I remember seeing a while back was InetMgr (https://github.com/typesafe/inetmgr), which seems a little unstable and doesn’t work for me but doesn’t seem to be supported any further.

  • 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-06-07T19:14:32+00:00Added an answer on June 7, 2026 at 7:14 pm

    Not the best of answers, but as I couldn’t find anything simpler than the proposed method below I just wrote something myself using appcmd:

    def create_web_site(site_name, site_location, site_port)
      delete_command = "#{$file["appcmd"]} delete site #{site_name}"
      result = system delete_command
      puts "Failed to delete site on IIS: #{$?}" unless result
    
      add_command = "#{$file["appcmd"]} add site /name:#{site_name} /bindings:http/*:#{site_port}: /physicalPath:#{site_location}"
      result = system add_command
      raise "Failed to add site on IIS: #{$?}" unless result
    
      set_app_pool_command = "#{$file["appcmd"]} set app #{site_name}/ /applicationPool:\"ASP.NET v4.0\""
      result = system set_app_pool_command
      raise "Failed to bind site to .net 4 app pool on IIS: #{$?}" unless result
    
      start_site_command = "#{$file["appcmd"]} start site #{site_name}"
      result = system start_site_command
      raise "Failed to start site on IIS: #{$?}" unless result
    end
    

    $file["appcmd"] in the above is a global file lookup for my build scripts, this is c:/windows/system32/inetsrv.

    I would love to find a nicer solution so if anyone comes across a nicer way of doing this add the answer and I will change the correct answer if it is any better. The only 2 libraries for doing this I found were dolphin deploy and 7 digital’s iis rake script, neither of which seemed well documented on how to use unfortunately.

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

Sidebar

Related Questions

I am using rake to build my project and I have a build.bat file
I'm trying to zip up the artifacts of a rake build, using Albacore's ZipTask
I'm working on rake tasks for a large .net solution (using the albacore gem)
I have a rake task to seed an application with random data using the
I have recently started using Rake for my personal projects, mainly because I am
How to deploy Rails project on live server using Rake task ? For other
I'm using rake for a C++ project. I'm using gcc -MM -MF to automatically
I am using 'rake 0.8.7' in my Rails project and yet when I still
when using Rake to run a spec, the output in quickfix is not colored,
Recently I removed a column abc from one of my tables using rake db:migrate

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.