How to create top-level site/application

  • Thread starter Thread starter Amil
  • Start date Start date
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
 
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.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

****************************************************************************
****
Think Outside the Box!
****************************************************************************
****
 
Back
Top