Same directory structure on development machine and final machine....

  • Thread starter Thread starter UJ
  • Start date Start date
U

UJ

Is there any way to have it so that you can have different root structures
on a web site on two different machines?

For instance - on my dev machine, I want to work in c:\inetpub\wwwroot\Devo
but on the web server it's going to be in g:\inetpub\wwwroot\Prod

How can I do this?

TIA - Jeff.
 
Yes, you can do that no problem. Just make sure when you reference
resources using the path structure (C:\...) you do so relatively, not
absolute. By this i mean don't say something like load an access
database with a path of c:\inetpub\wwwroot\devo\access.mdb, so it with
server.mappath("~/access.mdb") or something similar. The same holds
true for writing data. Easiest way is to relatively resolve the root,
then move down a directory.

HTH,
Darren Kopp
http://blog.secudocs.com/
 
Hi UJ,

You can change your .sln file accordingly to change directory
structure. Open your .sln in textpad or notepad and edit the path and
save it.

Cheers,
Kris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top