A Directory Configuration in IIS is Invalid

Plesk Servers > Troubleshooting
A Directory Configuration in IIS is Invalid

Issue

When you browse to a URL on your site, you get a message similar to the following:
 
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 59:   <!-- The system.webServer section is required for IIS7 compatibility It is ignored by IIS6-->
Line 60:   <system.web>
Line 61:     <machineKey validationKey="7CDEECDEAF58BEDD27C65D6B862516DD86F737B1" decryptionKey="7136E5BFC076FB1C4B49F8D87A4E9111EDCB7EA2ACFE7AAD" decryption="3DES" validation="SHA1" />
Line 62:     <!-- HttpModules for Common Functionality -->
Line 63:     <httpModules>
 
Source File: C:\Inetpub\vhosts\(primary domain)\httpdocs\(child directory)\web.config    Line: 61

Possible Causes
  • There is an extra web.config in the child directory.
  • You are trying to run an App from a sub-directory that is not set up as an application in IIS.
Resolution
There is an extra web.config in a child directory.
  • Rename (or delete) the extra web.config in the child portals directory.
You are trying to run an application from a sub-directory.
  1. Log into your Control Panel. Refer to How do I Access my Managed.com Control Panel?
  2.  Click on Domains and then click on the site that is experiencing this issue.
  3. Click on Create Virtual Directory.
  4. Uncheck the Create physical directory with the same name as the virtual directory box.
  5. Test the application to see if it is working.

Add Feedback