Groups | Blog | Home
all groups > dotnet academic > march 2005 >

dotnet academic : virtual directory


Sal
3/14/2005 7:49:02 PM
how do i set up a virtual directory to create a new asp.net application?

Mona
3/15/2005 4:58:19 PM
Hello Sal,

ASP.NET defines an application as the sum of all files, pages, handlers,
modules,
and executable code that can be invoked or run in the scope of a given
virtual directory
(and its subdirectories) on a Web application server. For example, an
"order" application
might be published in the "/order" virtual directory on a Web server
computer. For IIS the
virtual directory can be set up in the Internet Services Manager; it
contains all subdirectories,
unless the subdirectories are virtual directories themselves.
Each ASP.NET Framework application on a Web server is executed within a
unique .NET Framework
application domain, which guarantees class isolation (no versioning or
naming conflicts), security
sandboxing (preventing access to certain machine or network resources), and
static variable isolation.

To create an ASP.NET Framework application you can use an existing virtual
directory or create a new one.
For example, if you installed Windows 2000 Server including IIS, you
probably have a directory
C:\InetPub\WWWRoot. You can configure IIS using the Internet Services
Manager, available under
Start -> Programs -> Administrative Tools. Right-click on an existing
directory and choose either New
(to create a new virtual directory) or Properties (to promote an existing
regular directory).
By placing a simple .aspx page like the following in the virtual directory
and accessing it with the browser,
you trigger the creation of the ASP.NET application.

<%@Page Language="C#"%>
<html>
<body>
<h1>hello world, <% Response.Write(DateTime.Now.ToString()); %></h1>
</body>
</html>

<%@Page Language="VB"%>
<html>
<body>
<h1>hello world, <% Response.Write(DateTime.Now.ToString()) %></h1>
</body>
</html>

<%@Page Language="JScript"%>
<html>
<body>
<h1>hello world, <% Response.Write(DateTime.Now.ToString()); %></h1>
</body>
</html>

HTH

Mona

[quoted text, click to view]

Roopesh Rajendiran
5/10/2005 12:34:02 AM
hai,
the actul path of default virtual directory in dotnet is
...//wwwroot/inetpub this folders are created atomatically when vs.net is
installedifwe can change the default path from the iis or we can create a new
virtal directory in iis go to controlpannel->
administrative tools->Internet Services Manager->click
defaultwesite->rightclick new virtual directory->give a name to project->next
brows and specify the folder that we create earlier then next give read,write
and exicutepermissions then click finish u create the virtul directory for
the folder if u want more help mail meeeeeeeeee



[quoted text, click to view]
AddThis Social Bookmark Button