473,657 Members | 2,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Default app?

I'm confused about whether a web application needs to be defined in IIS as
an "applicatio n" 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 "applicatio n." 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 1259
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 "applicatio n."
!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="theN amespace" %>

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******** *****@TK2MSFTNG P06.phx.gbl...
I'm confused about whether a web application needs to be defined in IIS as
an "applicatio n" 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 "applicatio n." 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
12694
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
1572
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 specify and create a default config file. In other words, when the developer puts a new element in the schema
15
21186
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 pointers) and for objects types call their default constructor. Any others points i should know?
4
4726
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 14882:2003(E) §8.5 says:   To zero-initialize an object of type T means: 5   -- if T is a scalar type (3.9), the object is set to the value of 0 (zero) converted to T;
10
2388
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 zoot(1,2); It would instantiate MyClass, passing 1 and 2 to my constructor which in turn would do whatever I want it to. Would a default constructor be as follows:
19
6544
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 not declare one? 2) I've read that I can have a "Private Sub New()" which should take care of my needs. Comments? Thanks, Andrew
74
15959
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 creation of this implicit default constructor, to force the creation of a struct via my constructor only? Zytan
4
3705
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 value-initialization. I think default-init calls default constructor for class objects and sets garbage values to PODs. Value-init also calls default constructor for class objects and sets 0s to POD types. This is what I've learned from the books (especially...
4
3559
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 and all type of numeric variable is initialize to 0, bool type is false, is it true?
7
4251
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 VB.Net Thanks
0
8305
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8730
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7321
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1607
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.