aspx runs outside of application?!

aspx runs outside of application?!

am 08.05.2007 17:54:19 von Dave Bender

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.)

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

Re: aspx runs outside of application?!

am 08.05.2007 18:08:38 von reb01501

Dave Bender wrote:
> I'm confused about whether a web application needs to be defined in
> IIS as an "application" to run.

There was no way for you to know it (except maybe by browsing through
some of the previous questions before posting yours - always a
recommended practice), but this is a classic asp newsgroup. ASP.Net is
a different technology from classic ASP. While you may be lucky enough
to find a dotnet-savvy person here who can answer your question, you
can eliminate the luck factor by posting your question to a newsgroup
where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
There are also forums at www.asp.net where you can find a lot of people
to help you.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Re: aspx runs outside of application?!

am 08.05.2007 19:59:42 von Dave Anderson

Dave Bender wrote:
> ...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.

By default, IIS creates an application for the root of every web site.
Everything *NOT* in another application is in that application. This
includes subdirectories. The simple fact that the global.asax is parsed
confirms you are in an application.



> 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.)

IIS does not distinguish applications as ASP.NET or ASP. Any application can
have both. What you cannot have is different ASP.NET versions in the same
application. And under IIS6, you can't have different ASP.NET versions in
the same application pool.

As for the rest of your questions, I concur with Bob. Seek advice in an
ASP.NET forum.




--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.