473,386 Members | 1,815 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,386 software developers and data experts.

Intermittent configuration error

caa
We are intermittently getting the infamous Configuration error: "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." However, in our case the relevant
directory is definitely configured as an IIS Application. I've done a lot of
research online, and haven't found anyone else who gets this problem only
intermittently.

We have two sites running on the same server. They are accessed
independently from the Internet as www.appA.com and www.appB.com. Both share
some common code. The physical directory structure looks like this:
d:\appA
d:\appB
d:\Common

All three apps have pretty close to the default web.config files.

The virtual directories, all of which are applications, are setup like this:
appA --> d:\appA
Common --> d:\Common
appB --> d:\appB
Common --> d:\Common

The configuration error points to the Authentication section of the Common
directory's web.config. The weird thing is this works 99% of the time. Many
thousands of pages are served successfully in between each failure.
Immediately after a failure, you can go to the same server, same failing
page, and it works fine.

So does anybody know what else, besides a virtual directory/application
configuration issue, can cause this problem?
Nov 18 '05 #1
4 1379
This also happens if you have a Web.Config in a subdirectory of your
application that includes the <authentication> tag. Although you can use
the <authorization> element in subdirectories, you cannot authenticate again
in it.

Hope this helps,

Frank Mamone

"caa" <ca*@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
We are intermittently getting the infamous Configuration error: "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." However, in our case the relevant directory is definitely configured as an IIS Application. I've done a lot of research online, and haven't found anyone else who gets this problem only
intermittently.

We have two sites running on the same server. They are accessed
independently from the Internet as www.appA.com and www.appB.com. Both share some common code. The physical directory structure looks like this:
d:\appA
d:\appB
d:\Common

All three apps have pretty close to the default web.config files.

The virtual directories, all of which are applications, are setup like this: appA --> d:\appA
Common --> d:\Common
appB --> d:\appB
Common --> d:\Common

The configuration error points to the Authentication section of the Common
directory's web.config. The weird thing is this works 99% of the time. Many thousands of pages are served successfully in between each failure.
Immediately after a failure, you can go to the same server, same failing
page, and it works fine.

So does anybody know what else, besides a virtual directory/application
configuration issue, can cause this problem?

Nov 18 '05 #2
The only explanation is that it will work only when the app is not using the
pages inside that directory.

- Frank Mamone

"caa" <ca*@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
I will try switching the authentication section to an authorization section, but is there any explanation for why this works over 99% of the time?

"Frank Mamone" wrote:
This also happens if you have a Web.Config in a subdirectory of your
application that includes the <authentication> tag. Although you can use the <authorization> element in subdirectories, you cannot authenticate again in it.

Hope this helps,

Frank Mamone

"caa" <ca*@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
We are intermittently getting the infamous Configuration error: "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." However, in our case the

relevant
directory is definitely configured as an IIS Application. I've done a
lot of
research online, and haven't found anyone else who gets this problem

only intermittently.

We have two sites running on the same server. They are accessed
independently from the Internet as www.appA.com and www.appB.com. Both

share
some common code. The physical directory structure looks like this:
d:\appA
d:\appB
d:\Common

All three apps have pretty close to the default web.config files.

The virtual directories, all of which are applications, are setup like

this:
appA --> d:\appA
Common --> d:\Common
appB --> d:\appB
Common --> d:\Common

The configuration error points to the Authentication section of the Common directory's web.config. The weird thing is this works 99% of the time.

Many
thousands of pages are served successfully in between each failure.
Immediately after a failure, you can go to the same server, same failing page, and it works fine.

So does anybody know what else, besides a virtual directory/application configuration issue, can cause this problem?


Nov 18 '05 #3
caa
No, it actually does work more than 99% of the time on pages in that
directory. If a user gets the error on
http://www.appA.com/Common/testpage.aspx, then I can open a browser on my
computer, connect to the same server, hit the same page and it will work
fine. These are very high traffic sites (millions of page hits per day) and
this error is only occurring about 20 times per day on average. I'm wondering
if it's somehow related to how this app is loaded and cached (I don't know
much about this at all, so it's wild speculation) -- maybe there's a
difference if it's been previously loaded through a page that has a using
directive in the code behind vs. one that does a response.redirect??

Anyway, the changed web.config is in QA now, where the error very rarely
happens for some reason. It'll go to production in a couple of weeks and
we'll see if there's any difference there.

"Frank Mamone" wrote:
The only explanation is that it will work only when the app is not using the
pages inside that directory.

- Frank Mamone

"caa" <ca*@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
I will try switching the authentication section to an authorization

section,
but is there any explanation for why this works over 99% of the time?

"Frank Mamone" wrote:
This also happens if you have a Web.Config in a subdirectory of your
application that includes the <authentication> tag. Although you can use the <authorization> element in subdirectories, you cannot authenticate again in it.

Hope this helps,

Frank Mamone

"caa" <ca*@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
> We are intermittently getting the infamous Configuration error: "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." However, in our case the
relevant
> directory is definitely configured as an IIS Application. I've done a lot of
> research online, and haven't found anyone else who gets this problem only > intermittently.
>
> We have two sites running on the same server. They are accessed
> independently from the Internet as www.appA.com and www.appB.com. Both
share
> some common code. The physical directory structure looks like this:
> d:\appA
> d:\appB
> d:\Common
>
> All three apps have pretty close to the default web.config files.
>
> The virtual directories, all of which are applications, are setup like
this:
> appA --> d:\appA
> Common --> d:\Common
> appB --> d:\appB
> Common --> d:\Common
>
> The configuration error points to the Authentication section of the Common > directory's web.config. The weird thing is this works 99% of the time.
Many
> thousands of pages are served successfully in between each failure.
> Immediately after a failure, you can go to the same server, same failing > page, and it works fine.
>
> So does anybody know what else, besides a virtual directory/application > configuration issue, can cause this problem?


Nov 18 '05 #4
Let us know how it goes.

-Frank

"caa" <ca*@discussions.microsoft.com> wrote in message
news:34**********************************@microsof t.com...
No, it actually does work more than 99% of the time on pages in that
directory. If a user gets the error on
http://www.appA.com/Common/testpage.aspx, then I can open a browser on my
computer, connect to the same server, hit the same page and it will work
fine. These are very high traffic sites (millions of page hits per day) and this error is only occurring about 20 times per day on average. I'm wondering if it's somehow related to how this app is loaded and cached (I don't know
much about this at all, so it's wild speculation) -- maybe there's a
difference if it's been previously loaded through a page that has a using
directive in the code behind vs. one that does a response.redirect??

Anyway, the changed web.config is in QA now, where the error very rarely
happens for some reason. It'll go to production in a couple of weeks and
we'll see if there's any difference there.

"Frank Mamone" wrote:
The only explanation is that it will work only when the app is not using the pages inside that directory.

- Frank Mamone

"caa" <ca*@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
I will try switching the authentication section to an authorization

section,
but is there any explanation for why this works over 99% of the time?

"Frank Mamone" wrote:

> This also happens if you have a Web.Config in a subdirectory of your
> application that includes the <authentication> tag. Although you can
use
> the <authorization> element in subdirectories, you cannot
authenticate again
> in it.
>
> Hope this helps,
>
> Frank Mamone
>
> "caa" <ca*@discussions.microsoft.com> wrote in message
> news:18**********************************@microsof t.com...
> > We are intermittently getting the infamous Configuration error:
"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." However, in our case
the > relevant
> > directory is definitely configured as an IIS Application. I've done a lot
> of
> > research online, and haven't found anyone else who gets this
problem only
> > intermittently.
> >
> > We have two sites running on the same server. They are accessed
> > independently from the Internet as www.appA.com and www.appB.com.
Both > share
> > some common code. The physical directory structure looks like this: > > d:\appA
> > d:\appB
> > d:\Common
> >
> > All three apps have pretty close to the default web.config files.
> >
> > The virtual directories, all of which are applications, are setup like > this:
> > appA --> d:\appA
> > Common --> d:\Common
> > appB --> d:\appB
> > Common --> d:\Common
> >
> > The configuration error points to the Authentication section of the Common
> > directory's web.config. The weird thing is this works 99% of the

time. > Many
> > thousands of pages are served successfully in between each failure. > > Immediately after a failure, you can go to the same server, same

failing
> > page, and it works fine.
> >
> > So does anybody know what else, besides a virtual

directory/application
> > configuration issue, can cause this problem?
>
>
>


Nov 18 '05 #5

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

Similar topics

0
by: jb_in_marietta | last post by:
I have a Dot Net project that references a COM DLL called "Crypto.dll," which is registered on my machine. I added the reference via the "Add Reference" dialog in Visual Studio Dot Net, and I am...
1
by: bloodhound | last post by:
Hi, Problem with global.asa not firing 100% of the time. This error crops up several times throughout the day but if you wait a while and reload the page (could be 5 mins or an hour) it will...
0
by: deevoy | last post by:
Hi- I'm developing a asp.net web application and everything has proven fine on the dev and acceptance environment. We've moved the code up to our windows server 2003 prod environment and get the...
8
by: trinitypete | last post by:
Hi all I have a strange problem with IIS windows pass through authentication. Heres the setup IIS running with Windows Authentication for our intranet site. ACL has been set to everyone for all...
3
by: Lee Chapman | last post by:
Hi, I have a problem where my ASP.NET application occasionally generates a MissingFieldException exception. This unexpectedly happened on my development box, and so I was able to extract some...
1
by: deevoy | last post by:
Hi- I'm developing a asp.net web application and everything has proven fine on the dev and acceptance environment. We've moved the code up to our windows server 2003 prod environment and get...
0
by: Shane C | last post by:
Intermittent Error: Server was unable to process request  Object reference not set to an instance of an object I have windows application that references a XML web service on our web server. ...
0
by: Brano | last post by:
Hi all, I have a asp.net website that has been live for about 2 weeks now and there were no problems with it. I have got a new server that is Win 2003 IIS 6.0 I have moved my application onto...
8
by: Dave | last post by:
I am getting an intermittent database error on my asp page. I am using Access 2003 with classic ASP. The error is this: Microsoft JET Database Engine Error 80040e10 No value given for one or...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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...

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.