Development environment differing from the running web site

G

Guest

I need some symmetry between my development environment and my running web
site. The root of my web site is http://www.mysite.com/ while the root of the
project in my local development environment is http://localhost/myproject/,
differing from the local server root http://localhost/. This means a lot of
trouble since some url rewriting on my site forces me to use absolute
referers such as "/file.jpg" in a href and img src attributes, which come to
point at different locations on my website than in my local environment. I
tried redefining the root of my local development server in iis to
c:\Inetpub\wwwroot\myproject\ instead of c:\Inetpub\wwwroot\ but it seemed
impossible to get VS 2003 to handle this situation. It also seems impossible
to create a new project at c:\Inetpub\wwwroot\ instead of
c:\Intepub\wwwroot\newproject\. How do I solve this problem?

TIA
Erik
 
M

Michael Nemtsev

Hello Erik,

What's the problem to create site direcly in the wwwroot directory?

EE> I need some symmetry between my development environment and my
EE> running web site. The root of my web site is http://www.mysite.com/
EE> while the root of the project in my local development environment is
EE> http://localhost/myproject/, differing from the local server root
EE> http://localhost/. This means a lot of trouble since some url
EE> rewriting on my site forces me to use absolute referers such as
EE> "/file.jpg" in a href and img src attributes, which come to point at
EE> different locations on my website than in my local environment. I
EE> tried redefining the root of my local development server in iis to
EE> c:\Inetpub\wwwroot\myproject\ instead of c:\Inetpub\wwwroot\ but it
EE> seemed impossible to get VS 2003 to handle this situation. It also
EE> seems impossible to create a new project at c:\Inetpub\wwwroot\
EE> instead of c:\Intepub\wwwroot\newproject\. How do I solve this
EE> problem?
EE>
EE> TIA
EE> Erik
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
G

Guest

I'm not at office right now so unfortunately I can't describe the details,
but I couldn't get things the way I wanted them in the new solution dialogue
box... A checkbox named something like "Create site directory" was checked
and disabled so there didn't seem to be much choice other than to let VS
automatically create a subfolder to c:\inetpub\wwwroot\ and placing my new
solution there.

Though, creating a new project wouldn't solve the whole problem since the
site in shape of a solution already exists. What I really would like to do is
to move the whole project from C:\Inetpub\wwwroot\myproject\ into
C:\Inetpub\wwwroot\, but if I got things right this isn't as easy as cutting
and pasting all the files from one place to the other.

I guess this might be a rather stupid question but I'm quite new to VS and
not knowing what to do about what probably should be a minor issue is
annoying.
 
G

Guest

Ok, now I've managed to create a new web application directly in
C:\Inetpub\wwwroot. It wasn't that hard and maybe I posted the original
question too soon.

But my main problem still remains. The project containing my web site
already exists and I would like to move it from C:\Inetpub\wwwroot\myproject\
into C:\Inetpub\wwwroot\. How can this be done?

Is there anyone who can give me help or advise on this issue? It would be
greatly appreciated!
 

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

Top