473,762 Members | 8,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 ='MachineToAppl ication' 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: <authenticati on mode="windows" />
Line 47:
Line 48: <!-- AUTHORIZATION
What do i do to fix this problem?

Thanks,
Mark
Nov 18 '05 #1
3 1043
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******@hotma il.com> wrote in message
news:To******** ************@ad elphia.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 ='MachineToAppl ication' 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: <authenticati on 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******** ******@TK2MSFTN GP11.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******@hotma il.com> wrote in message
news:To******** ************@ad elphia.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 ='MachineToAppl ication' 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: <authenticati on 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 ='MachineToAppl ication' 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 "Applicatio n". 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
3683
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. http://ming.sourceforge.net/install.html ------------------ download php_ming.so.gz uncompress it and copy it to your php modules directory
7
12967
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 on my host (pair.com) but I have to upload it each time I want to test it. Is there something I need to do in order to test locally? Do I have to set up an SMTP server? Is that hard? Anything else needs to be done? CAN any of this
3
4049
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
2791
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 once could write a bit in ASP/SQL/HTML/JAVASCRIPT and even some Excel-VBA but have lost most knowledge about that and I never know a lot nor did I know how to set up a simulating PC to write and test the website.
3
17066
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 what they want, and the popup window closes and the main form (which is still open) shows the search results. Can anyone suggest a best course of action to acheive this? Thanks
6
2462
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 happens if one of those objects, when it is created, takes a reference to the object that contains it? Do bad things happen? class McShow {
5
12026
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
5635
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 want to use the mail() to send out the email from a web page but it can't work. The web server is on the red hat linux 9.0 with rpm sendmail-8.12.8-9.90 and sendmail-cf. In the begining, I got the error message, 'SYSERR(nobody) can not write...
14
3894
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 the amount of time (seconds) based on two timestamps? Thanks for your help and/or links to articles on the subject!
4
39507
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 I can do these two things then I can store the session id for a user in a database and everytime he requests an action I can just check if the session id is active or expired. If active let him continue if expired request to relogin. If the...
0
9554
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9378
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10137
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9989
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9927
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7360
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.