How to create top-level site/application

A

Amil

Hum...am I missing something here. Seems like when I create a new web
application in visual studio .net, it will put it at
http://localhost/newapp/. This is fine..for now.

But, I want to write the app in such a way that I can place it at a
top-level of a site...directly to an ip like http://newapp. For example, I
want to be able to have a href like "/myfile.txt", but in order for it work
work as a web app, I must write it as "/localhost/myfile.txt". Does this
make sense?

I just want to be able to write code using the root directory / which will
always resolve to the top-level. Do I have to put a new IP on my box and
create a totally new web site for development as well? Once it's ready for
production, I just want to copy to a top-level dir that is directly tagged
to an IP.

Amil
 
C

Cowboy \(Gregory A. Beamer\)

Set up the IP and create app in existing directory. This is for development.
When you publish (from VS.NET) or copy to a site, you can simply move the
code to the proper IP/URL. If you need a setup project, you can write code
against the IIS objects to create a new website, rather than a virtual
directory, but you have to write some code in a custom installer for this.
 

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

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top