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

It is an error to use a section registered as allowDefinition='MachineToApplication'

jc
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 the solution and project
files in under the folder where the IIS virtual directory is
pointing.

The solution is working fine.

On the server, If I manually create a new virtual directory, create a
new application name for it under the same application pool and copy
the the full directory into the new virtual I can browse the solution.

However if I attempt to browse the logon.aspx page I get this error:

Configuration Error
Description: An error occurred during the processing of a
configuration file required to service this request. Please review the
specific error details below and modify your configuration file
appropriately.

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 37: by Microsoft that offers a single logon and core
profile services for member sites.
Line 38: -->
Line 39: <authentication mode="Forms" >
Line 40: <!-- <forms loginUrl="Logon.aspx" name="AuthCookie"
timeout="60" path="/auth" ></forms>-->
Line 41: </authentication>
I've checked IIS settings on the two virtuals and security on both
directories and they are identical. I've confirmed the new virtual in
IIS is an application. I've checked IIS security. the new directory is
parallel with the old directory.. not underneith it. I've done an IIS
reset.

I've seen many posts on this topic.. none has helped.

Will I need to recompile and redeploy the solution to the new
Virtual?.. I'd like to avoid this.

Looking at the original working solution, it has an AssemblyInfo.vb
file a specific GUID.. should this matter?

I see the issue as purely an IIS issue.. but can't figure out why.

Moving past this (at some point soon I hope). If this web server only
has extensions for ASP.NET 1.1, any reason a site cannot run both 1.1
and 2.0? Any way to compile this code using VS.NET 2005 and deploy
into this server if 2.0 is not available?

Thanks.
Oct 28 '08 #1
1 6579
Hello JC,

Could you post a screenshot of your IIS mmc console with sites opened there
:)
It still seems to be IIS issue, that your have web.config somewhere above
your folders

---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour
:: http://twitter.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
JRE: It is an error to use a section registered as
JallowDefinition='MachineToApplication'
JThere's an asp.net 1.1 vb.net vs 2003 solution under a virtual
Jdirectory on one of our sites. I can see the solution and project
Jfiles in under the folder where the IIS virtual directory is
Jpointing.
J>
JThe solution is working fine.
J>
JOn the server, If I manually create a new virtual directory, create a
Jnew application name for it under the same application pool and copy
Jthe the full directory into the new virtual I can browse the
Jsolution.
J>
JHowever if I attempt to browse the logon.aspx page I get this error:
J>
JConfiguration Error
JDescription: An error occurred during the processing of a
Jconfiguration file required to service this request. Please review
Jthe
Jspecific error details below and modify your configuration file
Jappropriately.
JParser Error Message: It is an error to use a section registered as
JallowDefinition='MachineToApplication' beyond application level. This
Jerror can be caused by a virtual directory not being configured as an
Japplication in IIS.
J>
JSource Error:
J>
JLine 37: by Microsoft that offers a single logon and core
Jprofile services for member sites.
JLine 38: -->
JLine 39: <authentication mode="Forms" >
JLine 40: <!-- <forms loginUrl="Logon.aspx" name="AuthCookie"
Jtimeout="60" path="/auth" ></forms>-->
JLine 41: </authentication>
JI've checked IIS settings on the two virtuals and security on both
Jdirectories and they are identical. I've confirmed the new virtual in
JIIS is an application. I've checked IIS security. the new directory
Jis parallel with the old directory.. not underneith it. I've done an
JIIS reset.
J>
JI've seen many posts on this topic.. none has helped.
J>
JWill I need to recompile and redeploy the solution to the new
JVirtual?.. I'd like to avoid this.
J>
JLooking at the original working solution, it has an AssemblyInfo.vb
Jfile a specific GUID.. should this matter?
J>
JI see the issue as purely an IIS issue.. but can't figure out why.
J>
JMoving past this (at some point soon I hope). If this web server only
Jhas extensions for ASP.NET 1.1, any reason a site cannot run both 1.1
Jand 2.0? Any way to compile this code using VS.NET 2005 and deploy
Jinto this server if 2.0 is not available?
J>
JThanks.
J>
Oct 28 '08 #2

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

Similar topics

0
by: a | last post by:
I'm trying to process some xml code and I'm getting this error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. I'm not getting...
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...
1
by: choatdot | last post by:
I ftp my asp.net 2.0 pages using visual studio 2005 to a godaddy.com server, when I try running it I keep getting this error. Server Error in '/' Application....
0
by: Kailash | last post by:
Hello, I am getting below error in the webconfig file It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused...
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...
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...
4
by: cghost | last post by:
I'm attempting to build website that was previously published using VS.NET 2005 and the .Net framework 2.0, the site is using a local sql server as the data source. This copy i'm attempting to...
0
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.