G
Guest
I have a really newbie question... I developed an asp.net application. By
default, it was created here:
c:\inetpub\wwwroot\
Now, I wanted to create another application, completely independent. I
placed it here:
c:\inetpub\wwwroot\testapp\
The problem is that now, in the second application any reference to "/"
doesn't refer to the root of the second application, as I would expect, but
to the root of the main application... For instance if I have this:
<img src="/images/image1.gif">
I would expect this to point to: c:\inetpub\wwwroot\testapp\images\image1.gif
Instead, it points to:
c:\inetpub\wwwroot\images\image1.gif
Obviously, I could write all my links to include the testapp subdir, but the
reality is that the second application will be deployed on it's own server
and therefore over there it will point to the root. So, I cannot find a way
to develop this on the same machine... Am I missing something?
As a workaround I defined a key in the web.config and I put in there a
"suffix" which I apply to all links and on the developlement machine is
"/testapp" and on the production server it is ""... But really, I should be
able to develop 2 independent applications on the same machine....
Any help would be appreciated,
Thank you,
Adrian
default, it was created here:
c:\inetpub\wwwroot\
Now, I wanted to create another application, completely independent. I
placed it here:
c:\inetpub\wwwroot\testapp\
The problem is that now, in the second application any reference to "/"
doesn't refer to the root of the second application, as I would expect, but
to the root of the main application... For instance if I have this:
<img src="/images/image1.gif">
I would expect this to point to: c:\inetpub\wwwroot\testapp\images\image1.gif
Instead, it points to:
c:\inetpub\wwwroot\images\image1.gif
Obviously, I could write all my links to include the testapp subdir, but the
reality is that the second application will be deployed on it's own server
and therefore over there it will point to the root. So, I cannot find a way
to develop this on the same machine... Am I missing something?
As a workaround I defined a key in the web.config and I put in there a
"suffix" which I apply to all links and on the developlement machine is
"/testapp" and on the production server it is ""... But really, I should be
able to develop 2 independent applications on the same machine....
Any help would be appreciated,
Thank you,
Adrian