Can I create a new website in IIS with a .NET web setup project? RRS feed

  • Question

  • User346361848 posted


    Basically, I would like to configure my web setup project to create a new website in IIS rather than simply creating the virtual directory.  Does anyone know if this is possible?


    Tuesday, September 4, 2007 2:33 PM


All replies

  • User-1363174918 posted

    File | New | Web site

    Pick HTTP

    specify site address like http://localhost/MySite


    Tuesday, September 4, 2007 7:24 PM
  • User-2017008401 posted


    web setup project to create a new website in IIS rather than simply creating the virtual directory

    Hi FredEH,

    Based on my understanding, you have created a web setup project. What you want to do is install the web application to a special directory and create a new website for it instead of the virtual directory.

    Based on my research, I think we can achieve this by overriding the “Install” class to create a website against the special installed directory.

    For example, we can first install the web application to a special directory, such as “c:\inetpub\website2”, and then create a website against this folder. For more information, please refer to the following links:

    Allow user to set physical directory path during Web Project deployment

    script to create a website in IIS


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 10, 2007 4:16 AM
  • User346361848 posted

    That's what I needed.  Thanks a bunch!

    Thursday, September 13, 2007 12:33 PM
  • User-794260590 posted

    Hi Benson,

    regarding post at: http://forums.asp.net/p/1154573/1900398.aspx

    I found your post helpful in the ASP.NET Forum but the link you provided  to "create a Website in IIS" is broken.  I can't find the appropriate info anywhere.  Could you please redirect me to the updated link or resource?

    Greatly appreciated Smile

    Thursday, November 12, 2009 10:08 AM