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

Can't Run

Hi, When i try to run without debugging from the ide i get :

Server Error in '/' Application.
--------------------------------------------------------------------------------

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 44: by Microsoft that offers a single logon and core profile
services for member sites.
Line 45: -->
Line 46: <authentication mode="windows" />
Line 47:
Line 48: <!-- AUTHORIZATION
What do i do to fix this problem?

Thanks,
Mark
Nov 18 '05 #1
3 1032
Mark,
There are a number of places where configuration settings can be placed.
machine.config, web.config, @Page and @Control directives. Some
configuration settings aren't valid in all places. For example, you can put
a memoryLimit setting in the @Control directive, only in the
machine.config's processModel section. This error is telling you that you
have a configuration setting somewhere it doesn't belong. From the looks of
it, I'd say you are trying to set the authentication setting in a web.config
file which isn't at the root of the application - this is not allowed.

The two possibilities are (a) this is a mistake and the web.config IS at the
root of the application. If this is the case, then make sure the application
is set up as either a virtual directory or an application in IIS. More
likely (and (b) ), you are trying to set specific authentication for a
sub-folder or your site. The way to do this is to place the information
in the ROOT web.config and use the LOCATION element to control where it
applies to. Check out
http://www.devhood.com/tutorials/tut...tutorial_id=85 for
more information

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Mark Oliver" <ca******@hotmail.com> wrote in message
news:To********************@adelphia.com...
Hi, When i try to run without debugging from the ide i get :

Server Error in '/' Application.
-------------------------------------------------------------------------- ------
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 44: by Microsoft that offers a single logon and core profile services for member sites.
Line 45: -->
Line 46: <authentication mode="windows" />
Line 47:
Line 48: <!-- AUTHORIZATION
What do i do to fix this problem?

Thanks,
Mark

Nov 18 '05 #2
Hi,

I screwed around with inetmgr.exe not really knowing what i was doing,
Something i did made everything work, i am guessing it was setting the
Application name in the Directory Tab for Properties for my site. Thanks
for the "either a virtual directory or an application in IIS" tip.

Mark

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:ei**************@TK2MSFTNGP11.phx.gbl...
Mark,
There are a number of places where configuration settings can be placed.
machine.config, web.config, @Page and @Control directives. Some
configuration settings aren't valid in all places. For example, you can
put
a memoryLimit setting in the @Control directive, only in the
machine.config's processModel section. This error is telling you that you
have a configuration setting somewhere it doesn't belong. From the looks
of
it, I'd say you are trying to set the authentication setting in a
web.config
file which isn't at the root of the application - this is not allowed.

The two possibilities are (a) this is a mistake and the web.config IS at
the
root of the application. If this is the case, then make sure the
application
is set up as either a virtual directory or an application in IIS. More
likely (and (b) ), you are trying to set specific authentication for a
sub-folder or your site. The way to do this is to place the information
in the ROOT web.config and use the LOCATION element to control where it
applies to. Check out
http://www.devhood.com/tutorials/tut...tutorial_id=85 for
more information

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Mark Oliver" <ca******@hotmail.com> wrote in message
news:To********************@adelphia.com...
Hi, When i try to run without debugging from the ide i get :

Server Error in '/' Application.
--------------------------------------------------------------------------

------

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 44: by Microsoft that offers a single logon and core

profile
services for member sites.
Line 45: -->
Line 46: <authentication mode="windows" />
Line 47:
Line 48: <!-- AUTHORIZATION
What do i do to fix this problem?

Thanks,
Mark


Nov 18 '05 #3
Hi Mark,

You're right, it is exactly the
"setting the Application name in the Directory Tab for Properties for my
site."

makes your web application work. Karl's suggestion is quite correct and
also based on the error message you provided, you can also get the ideas,
the following lines in error message:

===========
Server Error in '/' Application.
----------------------------------------------------------------------------
----
===========

means the error occur at the root of the web application and then, the
below info

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

has told us that we may need to configured the application's virutal
directory as "Application". That's just what you did later.

Also, as Karl has mentioned, the elements in the web.config setting may
have different scope limitation. Some can be set in machine.config or
web.config level or sub directory's web.config setting, some may be only
allowed in machine.config / web.config level. For a complete reference,
you can have a look at the web application config file schema:

ASP.NET Settings Schema
http://msdn.microsoft.com/library/en...NETConfigurati
onSectionSchema.asp?frame=true

(You can find each element's scope requirement at the bottom of its
detailed page)

Then, if you encounter similiar error later, you can try checking such
setting first. Hope also helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 18 '05 #4

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

Similar topics

1
by: farzad | last post by:
Hi I try to install php_ming.so in my php . I am using Redhat 8.0 php 4.2.2 apache 2.0.4. I am doing as the howto install file want me to do. as follow....
7
by: Adams-Blake Co. | last post by:
This may be OT a bit, so maybe someone can point me in the right direction. I want to test a script that sends out an e-mail. I want to test it locally on my Mandrake Linux 8.2 box. It runs OK...
3
by: lawrence | last post by:
I haven't been able to reach www.php.net for days. Most of the rest of the web is working for me, though I've bad trouble reaching any English sites. Anyone else having trouble?
6
by: Michel | last post by:
Hi, I like to build a small simple dinamic website: Point-of-sale (detail-shop), So entering stock, logging all sales, print out invoices and download the logs to be imported into Excel. I...
3
by: nadia | last post by:
Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user can search for something. The user can then select...
6
by: lawrence | last post by:
How dangerous or stupid is it for an object to have a reference to the object which contains it? If I have a class called $controllerForAll which has an arrray of all the objects that exist, what...
5
by: Alper Adatoz | last post by:
Hi, i have a little problem. i hope u guys give me a clear solution (: db: mssql i just want to put jpeg file to the image field at the mssql db. and after that i want to call it back..
2
by: Sam Hou | last post by:
Dear all, I don't know where my problem is. Hopefully someone can give me some hint to explore the problem more. I am running Apache 2.0.48 wih PHP 4.3.4. The apache is running as nobody. I...
14
by: NotGiven | last post by:
I am guessing I would hold a variable of when it's opened, then in the script that runs when the page is offloaded, I coudl calcualte it. How do you store a time variable? How do you calculate...
4
by: Ryan Hubbard | last post by:
I would like to limit multiple logins for a user. How and when does the session id expire? Can I set it so after x minutes of inactivity it would expire. How do I check if session id exists? If...
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
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
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...
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
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.