Set website root

Discussion in 'Windows / IIS' started by flame, Sep 11, 2008.

  1. Hi all,

    With DiscountASP.NET, is it possible to use a different directory as my web site root?

    The reason I need to do this is that Visual Studio wipes all files in a directory when publishing the web site. I needed to store some data files within the account so I made a sub directory for the web site / app. I'd like to find a solution that doesn't involve response redirect. In a normal IIS box I could change the IIS web site's local path but I'm not sure if this is possible with DiscountASP.NET

    Thanks,
    Herman
     
  2. Hi,
    Have you tried just using the Copy Web Site tool in VS?
    With it you can selectively transfer files local to remote to local, safely.
    When you have test files on either end and you don't want to syncronize it is by far the safest method.
    Salute,
    Mark
     
  3. ThanksMark,

    That sounds like a viable option. Although with the copy website tool I'll lose the ability to precompile. Of course I could just precompile locally and copy the files via FTP. I just liked the convenience.

    I'd still like to know if I can redefine the web site root. That would solve my problem pretty nicely.

    Thanks,
    Herman
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    No you cannot change the website root to another directory.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page