473,388 Members | 1,198 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Default app?

I'm confused about whether a web application needs to be defined in IIS as
an "application" to run. We have a client who has a medium sized web site
(~2,000 pages), including some ASP and some aspx pages. These were
developed by different developers over the past several years.

What I don't understand is that some of the aspx pages compile and run fine,
but they are not in a virtual directory or in a folder that's conifgured as
an "application." They do read from a global.asax file in the web site's
web-doc root folder. But the site at its root is not configured as a .net
'application' either (and the .asp pages throughout the site would all fail
if it were, I think.) And I created a /Bin folder at the root level, but
putting compiled .dlls from other working web applications don't get
recognized or run.

Is there a 'global' web application for asp.net? If so, are there
restrictions on it? For example, can I create a /Bin folder and have it
work? (I've tried, and it hasn't but I'm not sure what I'm doing.) If not,
how else could the site be configured so it runs the .aspx pages?
Dave
May 8 '07 #1
1 1243
re:
!Is there a 'global' web application for asp.net?

Yes, there is, but for *any* page served by IIS, not just for pages served by ASP.NET.
ASP.NET is an ISAPI application which runs hosted by IIS.

re:
!they are not in a virtual directory or in a folder that's configured as an "application."
!But the site at its root is not configured as a .net 'application' either

I think you'll find it *is* defined as IIS's root application,
if -as you say- it resides in the web-doc root folder.

To verify :

1. open the IIS Manager and scroll on the left to "Default Web Site".

2. right click the "Default Web Site" and select "Properties" from the context menu

3. click the "Home Directory" tab and verify the physical location of the root directory.

re:
the .asp pages throughout the site would all fail if it were, I think.
No, they would not fail. They would run normally.

Whether an .asp page can run or not is determined by IIS, not by ASP.NET.

..asp pages can be located in IIS's root directory, in any subdirectory of it,
or in a directory which is not located under wwwroot which has been configured
as a virtual directory or an IIS application.

re:
!I created a /Bin folder at the root level, but putting compiled .dlls
!from other working web applications don't get recognized or run.

They should run.

re:
>can I create a /Bin folder and have it work?
Yes.

re:
I've tried, and it hasn't but I'm not sure what I'm doing.
All it takes is creating a subdirectory "bin" under the application's root.
No extra configuration is needed.

Are the dll's .net assemblies ? ( i.e., not VB6 dlls for asp pages ? )

If they are .net assemblies: are you importing the right namespaces from, the assemblies ?

i.e., do you have a directive like :

<%@ Import Namespace="theNamespace" %>

just under your Page directive ?

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Dave Bender" <da**@benders-of-edina.comwrote in message
news:O5*************@TK2MSFTNGP06.phx.gbl...
I'm confused about whether a web application needs to be defined in IIS as
an "application" to run. We have a client who has a medium sized web site
(~2,000 pages), including some ASP and some aspx pages. These were
developed by different developers over the past several years.

What I don't understand is that some of the aspx pages compile and run fine,
but they are not in a virtual directory or in a folder that's conifgured as
an "application." They do read from a global.asax file in the web site's
web-doc root folder. But the site at its root is not configured as a .net
'application' either (and the .asp pages throughout the site would all fail
if it were, I think.) And I created a /Bin folder at the root level, but
putting compiled .dlls from other working web applications don't get
recognized or run.

Is there a 'global' web application for asp.net? If so, are there
restrictions on it? For example, can I create a /Bin folder and have it
work? (I've tried, and it hasn't but I'm not sure what I'm doing.) If not,
how else could the site be configured so it runs the .aspx pages?
Dave

May 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: earl | last post by:
class temp { public: temp(); foo(char, char, char*); private: char matrix; }; temp::foo(char p, char o, char m = matrix )
0
by: inquirydog | last post by:
Hi- I am using xml to hold configuration data for a project, and using schema to define what the configuration file should look like. I wanted to get some advice on an intelligant way to...
15
by: A | last post by:
Hi, A default copy constructor is created for you when you don't specify one yourself. In such case, the default copy constructor will simply do a bitwise copy for primitives (including...
4
by: Steven T. Hatton | last post by:
I mistakenly set this to the comp.std.c++ a few days back. I don't believe it passed the moderator's veto - and I did not expect or desire anything different. But the question remains: ISO/IEC...
10
by: Ook | last post by:
I'm having trouble comprehending what exactly "default construction" is. I know how to provide a constructor with initial values, so that if I, for example, in my code do this: MyClass...
19
by: Andrew J. Marshall | last post by:
I want to create a class that must receive a parameter when instantiated. In other words, I do not want it to have a "Public Sub New()". 1) Does VB.NET create a default public constructor if I do...
74
by: Zytan | last post by:
I have a struct constructor to initialize all of my private (or public readonly) fields. There still exists the default constructor that sets them all to zero. Is there a way to remove the...
4
by: Jess | last post by:
Hello, I tried several books to find out the details of object initialization. Unfortunately, I'm still confused by two specific concepts, namely default-initialization and...
4
by: Macneed | last post by:
i am a newbie, i remember i read a book talking about when u declare a array variable using float ABC = new float; the whole array element in ABC ( ABC to ABC ) will automatic initialize to 0...
7
by: =?Utf-8?B?Y291Z2FyaXN0aWM=?= | last post by:
I am trying to convert an C# application to VB and have one issue which is converting the generic value to the default. C# uses return default(T) as the return value how would I translate this in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.