473,396 Members | 2,154 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,396 software developers and data experts.

SYSTEM DOWN: IIS wont register Web App

Hello all.... i am having a very frustrating problem, because it has KILLED
my website, and i cant seem to get it working again.

I have an ASP.NET 2.0 site, which worked without any problems a few days
ago. The past few days i have been working on a different project, and have
not touched this project. I have checked in Windows Update, and no updates
were installed in the past couple days and no work has been done on the
server.

In my web app, i am using Forms Authentication, and consequently have both
an AUTHENTICATION element and an AUTHORIZATION element.When i try to go to
the site, ... well, the first problem is it is not recognizing my
customErrors mode=Off setting. So i have to go to the server to find out
what's really wrong (this is probably related to my main problem).

But when i go to the site now on the server, i get the following error:
===== BEGIN ERROR =====
Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.

Source Error:

Line 68: <authentication mode="Forms" <----- this line is
highlighted.
Line 69: <forms defaultUrl="index.aspx" loginUrl="login.aspx"
name="bnlpcasAUTHX" protection="All" slidingExpiration="true" timeout="90"/>
Line 70: </authentication>
===== END ERROR =====

I checked the directory in IIS and it is set up as an application. I tried
removing the application and recreating it. Nojoy. I tried switching the
site to .NET 1.1, Nojoy, switched it back to 2.0, Nojoy. IIS seems to have
lost the fact that this is an application and no matter what i do, i can't
seem to get it recognized as an application again, even though the IIS gui
does show it as an application. This has happened to both our 2.0 sites and
our 1.1 sites. One or two sites ive been able to get back up by removing the
application and recreating it, but not most of them.

As part of the same problem, it also doesnt recognize other settings in the
web config... such as the customErrors and connectionStrings keys.

Any help is GREATLY appreciated as this currently has our development system
essentially down and development stopped.
Thanks in advance!!!!!
- Arthur Dent
Jul 27 '06 #1
5 1086
This can be caused by several things, but the most common is that the folder
from which your app is being loaded has a web.config file but is not marked
as an IIS application (or it's an ASP.NET 1.1 app and should be a 2.0 app, or
vice-versa).
If it is supposed to be a "sub web", then remove the web.config and the
web.config from the higher-up folder IIS App will be operant.
Pete

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Arthur Dent" wrote:
Hello all.... i am having a very frustrating problem, because it has KILLED
my website, and i cant seem to get it working again.

I have an ASP.NET 2.0 site, which worked without any problems a few days
ago. The past few days i have been working on a different project, and have
not touched this project. I have checked in Windows Update, and no updates
were installed in the past couple days and no work has been done on the
server.

In my web app, i am using Forms Authentication, and consequently have both
an AUTHENTICATION element and an AUTHORIZATION element.When i try to go to
the site, ... well, the first problem is it is not recognizing my
customErrors mode=Off setting. So i have to go to the server to find out
what's really wrong (this is probably related to my main problem).

But when i go to the site now on the server, i get the following error:
===== BEGIN ERROR =====
Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.

Source Error:

Line 68: <authentication mode="Forms" <----- this line is
highlighted.
Line 69: <forms defaultUrl="index.aspx" loginUrl="login.aspx"
name="bnlpcasAUTHX" protection="All" slidingExpiration="true" timeout="90"/>
Line 70: </authentication>
===== END ERROR =====

I checked the directory in IIS and it is set up as an application. I tried
removing the application and recreating it. Nojoy. I tried switching the
site to .NET 1.1, Nojoy, switched it back to 2.0, Nojoy. IIS seems to have
lost the fact that this is an application and no matter what i do, i can't
seem to get it recognized as an application again, even though the IIS gui
does show it as an application. This has happened to both our 2.0 sites and
our 1.1 sites. One or two sites ive been able to get back up by removing the
application and recreating it, but not most of them.

As part of the same problem, it also doesnt recognize other settings in the
web config... such as the customErrors and connectionStrings keys.

Any help is GREATLY appreciated as this currently has our development system
essentially down and development stopped.
Thanks in advance!!!!!
- Arthur Dent
Jul 27 '06 #2
As i said, this is an application, and has the application configured in
IIS. But even though the IIS gui says it is an application (it has an
application name in the properties dialog, and it has the different icon),
it still is not properly recognizing it as an application. I have tried
uninstalling and reinstalling both .NET 1.1 and 2.0 from the server
entirely, and reapplying all updates from Windows Update, but still nojoy.
Again... the directory IS supposed to be an application, and is marked as
such in the IIS gui, but it is not being processed as an application when a
user browses to the various sites.

For explanation, the way we have it set up is ... we are a web development
and hosting company. So we have a sub-domain set up that goes
http://test.ourcompany.com. then under there we have subdirectories for each
client/project such as test.ourcompany.com/client1,
test.ourcompany.com/client2 etc etc. Each of these subdirectories are
ASP.NET web apps (some 1.1, some 2.0). IIS shows them as being applications,
with the funny little box icon, and a name in the properties dialog. But
even so, when i go to them in a browser, i get the message about using a
Machine-to-Application level setting beyond an application.

Why is IIS not serving my apps up as applications? What could cause this?
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:07**********************************@microsof t.com...
This can be caused by several things, but the most common is that the
folder
from which your app is being loaded has a web.config file but is not
marked
as an IIS application (or it's an ASP.NET 1.1 app and should be a 2.0 app,
or
vice-versa).
If it is supposed to be a "sub web", then remove the web.config and the
web.config from the higher-up folder IIS App will be operant.
Pete

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Arthur Dent" wrote:
>Hello all.... i am having a very frustrating problem, because it has
KILLED
my website, and i cant seem to get it working again.

I have an ASP.NET 2.0 site, which worked without any problems a few days
ago. The past few days i have been working on a different project, and
have
not touched this project. I have checked in Windows Update, and no
updates
were installed in the past couple days and no work has been done on the
server.

In my web app, i am using Forms Authentication, and consequently have
both
an AUTHENTICATION element and an AUTHORIZATION element.When i try to go
to
the site, ... well, the first problem is it is not recognizing my
customErrors mode=Off setting. So i have to go to the server to find out
what's really wrong (this is probably related to my main problem).

But when i go to the site now on the server, i get the following error:
===== BEGIN ERROR =====
Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error
can be caused by a virtual directory not being configured as an
application
in IIS.

Source Error:

Line 68: <authentication mode="Forms" <----- this line
is
highlighted.
Line 69: <forms defaultUrl="index.aspx" loginUrl="login.aspx"
name="bnlpcasAUTHX" protection="All" slidingExpiration="true"
timeout="90"/>
Line 70: </authentication>
===== END ERROR =====

I checked the directory in IIS and it is set up as an application. I
tried
removing the application and recreating it. Nojoy. I tried switching the
site to .NET 1.1, Nojoy, switched it back to 2.0, Nojoy. IIS seems to
have
lost the fact that this is an application and no matter what i do, i
can't
seem to get it recognized as an application again, even though the IIS
gui
does show it as an application. This has happened to both our 2.0 sites
and
our 1.1 sites. One or two sites ive been able to get back up by removing
the
application and recreating it, but not most of them.

As part of the same problem, it also doesnt recognize other settings in
the
web config... such as the customErrors and connectionStrings keys.

Any help is GREATLY appreciated as this currently has our development
system
essentially down and development stopped.
Thanks in advance!!!!!
- Arthur Dent

Jul 27 '06 #3
Arthur,
Aside from the recommendation to run ASP.NET 1.1 and 2.0 Applications under
separate AppPools, it could be that one or more of your applications is not
configured for the corect Framwork version.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Arthur Dent" wrote:
As i said, this is an application, and has the application configured in
IIS. But even though the IIS gui says it is an application (it has an
application name in the properties dialog, and it has the different icon),
it still is not properly recognizing it as an application. I have tried
uninstalling and reinstalling both .NET 1.1 and 2.0 from the server
entirely, and reapplying all updates from Windows Update, but still nojoy.
Again... the directory IS supposed to be an application, and is marked as
such in the IIS gui, but it is not being processed as an application when a
user browses to the various sites.

For explanation, the way we have it set up is ... we are a web development
and hosting company. So we have a sub-domain set up that goes
http://test.ourcompany.com. then under there we have subdirectories for each
client/project such as test.ourcompany.com/client1,
test.ourcompany.com/client2 etc etc. Each of these subdirectories are
ASP.NET web apps (some 1.1, some 2.0). IIS shows them as being applications,
with the funny little box icon, and a name in the properties dialog. But
even so, when i go to them in a browser, i get the message about using a
Machine-to-Application level setting beyond an application.

Why is IIS not serving my apps up as applications? What could cause this?
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:07**********************************@microsof t.com...
This can be caused by several things, but the most common is that the
folder
from which your app is being loaded has a web.config file but is not
marked
as an IIS application (or it's an ASP.NET 1.1 app and should be a 2.0 app,
or
vice-versa).
If it is supposed to be a "sub web", then remove the web.config and the
web.config from the higher-up folder IIS App will be operant.
Pete

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Arthur Dent" wrote:
Hello all.... i am having a very frustrating problem, because it has
KILLED
my website, and i cant seem to get it working again.

I have an ASP.NET 2.0 site, which worked without any problems a few days
ago. The past few days i have been working on a different project, and
have
not touched this project. I have checked in Windows Update, and no
updates
were installed in the past couple days and no work has been done on the
server.

In my web app, i am using Forms Authentication, and consequently have
both
an AUTHENTICATION element and an AUTHORIZATION element.When i try to go
to
the site, ... well, the first problem is it is not recognizing my
customErrors mode=Off setting. So i have to go to the server to find out
what's really wrong (this is probably related to my main problem).

But when i go to the site now on the server, i get the following error:
===== BEGIN ERROR =====
Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error
can be caused by a virtual directory not being configured as an
application
in IIS.

Source Error:

Line 68: <authentication mode="Forms" <----- this line
is
highlighted.
Line 69: <forms defaultUrl="index.aspx" loginUrl="login.aspx"
name="bnlpcasAUTHX" protection="All" slidingExpiration="true"
timeout="90"/>
Line 70: </authentication>
===== END ERROR =====

I checked the directory in IIS and it is set up as an application. I
tried
removing the application and recreating it. Nojoy. I tried switching the
site to .NET 1.1, Nojoy, switched it back to 2.0, Nojoy. IIS seems to
have
lost the fact that this is an application and no matter what i do, i
can't
seem to get it recognized as an application again, even though the IIS
gui
does show it as an application. This has happened to both our 2.0 sites
and
our 1.1 sites. One or two sites ive been able to get back up by removing
the
application and recreating it, but not most of them.

As part of the same problem, it also doesnt recognize other settings in
the
web config... such as the customErrors and connectionStrings keys.

Any help is GREATLY appreciated as this currently has our development
system
essentially down and development stopped.
Thanks in advance!!!!!
- Arthur Dent


Jul 27 '06 #4
The server is Win2000, so it has an older version of IIS, which does not
have the application pools part like on aWin2003 server.
How would i do that? I tried setting the Application Protection to High
(Isolated), but that did not make any difference.

If it were because a site or two was set to the wrong version of the
framework, why would that kill mostly ALL the sites on the server?

I just tried creating a brand new folder on the webserver, setting it up as
an app, and copying all the files from the first to the second....
thinking that perhaps it was something in the IIS metabase for the original
site that got screwed up. But even the new folder did not work.
I think somehow something with IIS has gotten hosed.

I just tried also running aspnet_iisreg -u -i and -c for both versions of
the framework, but nojoy.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:47**********************************@microsof t.com...
Arthur,
Aside from the recommendation to run ASP.NET 1.1 and 2.0 Applications
under
separate AppPools, it could be that one or more of your applications is
not
configured for the corect Framwork version.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com

Jul 27 '06 #5
In case any one else reads this looking for answers...

What i ultimately had to wind up doing was completely uninstalling all of
IIS from the server (through Add/Remove Programs Windows Components) and
reinstall it... now everything works beautifully again.
Jul 28 '06 #6

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

Similar topics

4
by: MC | last post by:
Hi I have decided cause I am fed up of re-creating code that does the same thing over and over again for various websites, I thought i'd try to write a DLL and have done so in Visual Studio 2005...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
2
by: catronro | last post by:
I want to read an xml file and build a string based on that file. But when i try to implement it i get an Object Required error. Any help would be greatly appreciated. try { var xmlDoc = new...
5
by: sololoquist | last post by:
#define COUNT_UP #include <stdio.h> #define N 10 int main() { int i; #ifdef COUNT_UP for (i = 0; i < N; i++)
1
by: starcandy | last post by:
haii........ ,first at all sorry because im not good in english i want to ask how to add quantity for inventory system .this is my form but it has error... <?php...
3
by: AL | last post by:
We have a system of Data collection terminal (Capdrive from captorgroup) with keypad and with Microcap terminal. We had a MRP software that communicated with captor system. But now we can not...
3
by: dixonjm | last post by:
Hi, In my page load event i have:- RegisterClientScripts(); if (!Page.IsClientScriptBlockRegistered("BannerScript")) if (!IsPostBack) { ...
13
by: Apostle | last post by:
Hi all, after thinking for sometimes, I thought it will be great opportunity to learn if I will start from scratch and build my own register/login system. Here is the thread that I will be posting...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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,...
0
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...

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.