Shabdar.org
Webshabdar.org
Virtual directory not being configured as an application in IIS PDF Print E-mail
Written by Shabdar   
Monday, 24 November 2008 12:09

Problem

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 53:
Line 54:< authentication mode="Windows" />
Line 55:
Line 56:

Solution

Change authentication mode to 'None' in web.config.

Go to your web.config file and change following line
< authentication mode="Windows" />
to
< authentication mode="None" />

This should solve this problem.

If above solution does not work then make sure that the directory from where you website is running is configured as an application in IIS. To do this, you need to go into IIS and find your project folder on the server, right click to Properties. Under Application Settings click Create.

Cause

By default ASP.Net creates Windows authentication mode in Web.Config file. When you run this site locally on your computer, it runs fine. This is because it runs under current windows account credentials (i.e. Your windows login which may have administrative rights). But when you copy it to web server it runs under [MACHINENAME]\ASPNet account. If it does not have appropriate rights, server will throw this error.

Comments/Questions

This actually has to do with Visual Studio and how it deploys it web applications. From my experience you need to go into IIS and find your project folder on the server, right click to Properties. Under Application Settings click Create. It doesnt matter which authentication mode you use with a web project, IIS will not allow it to run as Web Site. It's configured to be a Web App.
=> Kevin (Thursday 22-May-08 11:56 AM)
 
 
Very helpful comment. Changing authentication mode doesn't really work.
=> DevAnon (Tuesday 08-Jul-08 07:43 PM)
 
{mos_fb_discuss:16}
Comments
Add New Search
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
Please input the anti-spam code that you can read in the image.
safdar |59.177.0.xxx |2009-04-03 23:41:19
i have change the the folder name where my project is kept.after that i m
getting error..... a virtual directory not being configured as an application in
IIS

i m using .net 2008 plz tell me solutin
Noor Rahman |110.36.9.xxx |2009-08-24 03:50:33
go to adimin tools in control panel

clink on the local computer

expend it clink on ur site folder ie right clink go to properties directory tabe
created clink then

apply and ok error will be removed shurrly okk







Noor Rahman winsows aut erro w  - re: |110.36.9.xxx |2009-08-24 03:51:46
Noor Rahman wrote:
go to adimin tools in control panel

clink on the local computer

expend it clink on ur site folder ie right clink go to properties directory tabe
created clink then

apply and ok error will be removed shurrly okk







balasubramanian  - doupt |122.164.166.xxx |2009-06-26 22:13:59
:side: 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 24:
Line 25:
Line 26:
Line 27:
Line 28:


Source File: C:\Documents and Settings\Janaka\My
Documents\Visual Studio 2005\WebSites\TheBeerHouse\thebeerhous
e\tbh_web\web.config Line: 26
Srinivas Chinta |122.166.97.xxx |2009-12-08 06:44:45
Solution given by Kevin (Thursday 22-May-08 11:56 AM) is working like magic.
thank you.
Shefalee  - not work this tip |59.162.251.xxx |2010-01-07 02:39:57
I have done try to do by all above suggest way but still it give error so please
give any other solution....thanks
Juan  - Its work |201.29.67.xxx |2010-03-24 21:41:09
=> Kevin (Thursday 22-May-08 11:56 AM)
Good answer, fix my problem
Jeba  - finally |200.182.52.xxx |2010-07-05 11:56:13
Juan wrote:
=> Kevin (Thursday 22-May-08 11:56 AM)
Great!!! Fix my problem! Thanks Kevin
swetha  -  finally |121.247.73.xxx |2010-07-27 08:16:23
Kevin (Thursday 22-May-08 11:56 AM)
Great!!! Fix my problem! Thanks Kevin[/quote][/quote]
Last Updated on Sunday, 04 January 2009 00:16