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

allowDefinition='MachineToApplication'

I have been looking around on different sites and fora, and i have a similar
problem than some people had before...
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.

this is the solution i've read (almost everywhere)
"You need to create an application or a virtual directory ( with the IIS
Manager ) for the directory in which the code is placed."

Since I have several subfolders in my app, that would mean that I have to
make an application of every single folder?

There has to be another solution, or am I wrong ?


Nov 19 '05 #1
3 12571
re:
Since I have several subfolders in my app, that would mean
that I have to make an application of every single folder?
No.

It means that if you have an application, you should not configure the
MachineToApplication settings in web.config's in the subdirectories.

All you have to do is set the MachineToApplication settings in your
Application's root, and they will be inherited in the subdirectories.

Solution :

Configure all MachineToApplication settings in your application's root,
and remove all MachineToApplication settings from your application's
subdirectories.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Boonaap" <Bo*****@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...I have been looking around on different sites and fora, and i have a similar
problem than some people had before...
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.

this is the solution i've read (almost everywhere)
"You need to create an application or a virtual directory ( with the IIS
Manager ) for the directory in which the code is placed."

Since I have several subfolders in my app, that would mean that I have to
make an application of every single folder?

There has to be another solution, or am I wrong ?

Nov 19 '05 #2
Well in the mean time I found a workaround in the machine.config
but had a bad feeling about it, because it seems a bit risky

thx

"Juan T. Llibre" wrote:
re:
Since I have several subfolders in my app, that would mean
that I have to make an application of every single folder?


No.

It means that if you have an application, you should not configure the
MachineToApplication settings in web.config's in the subdirectories.

All you have to do is set the MachineToApplication settings in your
Application's root, and they will be inherited in the subdirectories.

Solution :

Configure all MachineToApplication settings in your application's root,
and remove all MachineToApplication settings from your application's
subdirectories.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Boonaap" <Bo*****@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
I have been looking around on different sites and fora, and i have a similar
problem than some people had before...
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.

this is the solution i've read (almost everywhere)
"You need to create an application or a virtual directory ( with the IIS
Manager ) for the directory in which the code is placed."

Since I have several subfolders in my app, that would mean that I have to
make an application of every single folder?

There has to be another solution, or am I wrong ?


Nov 19 '05 #3
Hi, Boonaap.

Here's the main distinctions to keep in mind :

MachineToApplication settings in machine.config are machine-wide.
They affect *all* .net applications on the machine.

You can restrict MachineToApplication settings to *one* application
by making the settings in *that* application's web.config.

MachineToApplication web.config settings in any subdirectory
not configured as an Application throw the error you encountered.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Boonaap" <Bo*****@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.com...
Well in the mean time I found a workaround in the machine.config
but had a bad feeling about it, because it seems a bit risky

thx

"Juan T. Llibre" wrote:
re:
> Since I have several subfolders in my app, that would mean
> that I have to make an application of every single folder?


No.

It means that if you have an application, you should not configure the
MachineToApplication settings in web.config's in the subdirectories.

All you have to do is set the MachineToApplication settings in your
Application's root, and they will be inherited in the subdirectories.

Solution :

Configure all MachineToApplication settings in your application's root,
and remove all MachineToApplication settings from your application's
subdirectories.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Boonaap" <Bo*****@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
>I have been looking around on different sites and fora, and i have a similar
> problem than some people had before...
> 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.
>
> this is the solution i've read (almost everywhere)
> "You need to create an application or a virtual directory ( with the IIS
> Manager ) for the directory in which the code is placed."
>
> Since I have several subfolders in my app, that would mean that I have to
> make an application of every single folder?
>
> There has to be another solution, or am I wrong ?


Nov 19 '05 #4

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

Similar topics

1
by: Alex D. | last post by:
I upgraded one of my applications to beta 2. conversion seemed to work OK, problem is when trying to build I get an error like: it is an error to use a section registered as...
3
by: Patrick Paquin | last post by:
Hi, I have an application ("appls") on my website. This application is a subfolder of the website root. This subfolder is configured as an application in the IIS Manager When I want...
23
by: deathtospam | last post by:
A day or two ago, I wrote a quick ASPX page with a CS codebehind using Visual Studio .NET 2005 -- it worked, I saved it and closed the project. Today, I came back to the project, reopened the...
3
by: princessjewel62 | last post by:
Hi all, Im having a big problem. Im trying out a program which works fine yesterday but today it gives me more headache. It is about session sharing between ASP and ASP.NET application. The...
1
by: kevingangsun | last post by:
I created an ASP.NET application for our company and it worked great on more than 4 windows 2003 servers. However, when we deployed it to another 2003 server (IIS6), we got the following error...
4
by: K Viltersten | last post by:
We have a project working well today and it's developed on VS2005. Since we're planing to switch to VS2008 in a soon future, i've been trying to move the project to VS2008 Express (Web...
1
by: jc | last post by:
RE: It is an error to use a section registered as allowDefinition='MachineToApplication' There's an asp.net 1.1 vb.net vs 2003 solution under a virtual directory on one of our sites. I can see...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.