Home > Internet Information Services (IIS) > IIS – Configuration Error …

IIS – Configuration Error …

I got this error again today and thought "how do I fix this again?" after checking out IIS remembered that I need to enable the folder/location as an IIS application – error messages mentions this!
OK, so this is the error message:

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 49:   ...
Line 50:   -->
Line 51:   <authentication mode="Windows" />
Line 52:   <!--   AUTHORIZATION

Cause:
The Web.Config is telling IIS to treat this as an application but it has not been set up as an application in IIS - hence the error message.

Solution:

  1. Run/Open IIS (under Control Panel > Administrative Tools  for most Operating Systems)
  2. Find the project in the list of projects. (Open up your computer in the list and look under "Default Web Site").
  3. Bring up its properties (Right click > Properties).
  4. If the "application name" (under "Application Settings" on the "Directory" tab) is greyed out then click '[Create]' and then '[OK]'.

Now if you refresh or reload your browser to the address of your website or webservice you should see it!

Greg Olsen
Yellow Duck Guy

Advertisements
  1. Swathi
    January 18, 2011 at 2:15 am

    Swathi :I am getting The configuration error in iis.I tried the Solution which is given for this article,but still I am getting the same problem.Can U Help me solve this

  2. May 18, 2011 at 9:18 pm

    Thanks!!! It worked for me

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: