Application Name in Virtual Directory

G

Guest

Hi,

I am wondering that the Application Name in Virtual Directory is compulsory
be non-empty field when configuring Virtual Directory for ASP.NET application?

I realized some of my ASP.NET applications can run with empty Application
Name, but some cannot.

Is the Application Name must be same as the xxx.DLL file name in BIN folder
and Inherits="xxx.Login" in aspx? (xxx is the name I am referring to)?

Thank you.

- Dennis -
 
J

Jared

Dennis,
The following is an excerpt from one of my books.

IIS Application
When a virtual directory is set up as an IIS application, the files within
it can share information such as context flow, session state, configuration,
and other settings. A virtual directory marked as an IIS application is
designated as the starting-point directory (also called as application root)
for a web application in your Web site. Every file and directory under the
application root in your Web site is considered part of the application
until another starting-point directory is found. That is, you can nest Web
applications.

To answer your question, no, it is not mandatory to have an application name
in your virtual directory. As far as the application name itself, it can be
anything you want. It is used by IIS, and isn't dependent on any file names.
I could be wrong on this, I'm not 100% sure. Read the following thread, it
gives some examples.
http://dotnetjunkies.com/Newsgroups/microsoft.public.dotnet.framework.aspnet/2004/3/31/103828.aspx
 

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

Top