PDA

View Full Version : Set website root


flame
09-11-2008, 05:25 AM
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

wisemx
09-11-2008, 05:58 AM
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

flame
09-12-2008, 01:29 AM
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

bruce
09-12-2008, 09:30 AM
No you cannot change the website root to another directory.


Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)