By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,310 Members | 1,951 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,310 IT Pros & Developers. It's quick & easy.

How to create top-level site/application

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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!
************************************************** **************************
****
"Amil" <am********@hotmail.com> wrote in message
news:eK****************@TK2MSFTNGP11.phx.gbl...
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

Nov 17 '05 #2

P: n/a
Here's the information you requested on creating a web app in the root web:
http://support.microsoft.com/default...b;en-us;303845

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Amil" <am********@hotmail.com> wrote in message
news:eK****************@TK2MSFTNGP11.phx.gbl...
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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.