Error: It is an Error to Use a Section Registered as Allowdefinition='machinetoapplication' Beyond Application Level.
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 File: C:\Inetpub\vhosts\test.org\httpdocs\subdirectoryname\web.config Line: 61
Causes
- There is an extra web.config in the child directory.
- You are trying to run DotNetNuke from a subdirectory that is not set up as an application in IIS.
Resolutions
Remove the Extra Web.config
- Follow How to access your web.config, to get to your file structure.
- This is the location of the main web.config so when you get to click on HTTPDocs your next step is click the child portal folder name.
- The file we need looks like this C:\Inetpub\vhosts\test.org\httpdocs\child_portals_name\web.config
- Rename the secondary web.config file to Old_Web.config or web.config.not_used or something similar.
- You may alternately delete the web.config in the child_portals_name folder NOT the root directory.
Set Up DotNetNuke's Subdirectory in IIS
Plesk 12
- Log into your Control Panel.
- Click on the System tab.
- In the Subscriptions section select your domain.
- Select the Websites & Domains tab.
- Expand the Show More link then click Virtual Directories.
- Click the Create Virtual Directory folder.
- Name the new directory the same as the existing directory you are attempting to run DotNetNuke from.
- Uncheck Create physical directory with the same name as the virtual directory.
- Click the folder and browse to the existing folder you want to set up as an application.
- Click OK, and then OK again on the main page to create the application.
- Test to verify it is working.
Plesk 11
- Log into your Control Panel.
- Click on the System tab.
- In the Subscriptions section select your domain.
- Select the Websites & Domains tab.
- Expand the Hide Advanced Options link then click Virtual Directories.
- Click the Create Virtual Directory folder.
- Name the new directory the same as the existing directory you are attempting to run DotNetNuke from.
- Uncheck Create physical directory with the same name as the virtual directory.
- Click the folder and browse to the existing folder you want to set up as an application.
- Click OK, and then OK again on the main page to create the application.
- Test to verify it is working.
Plesk 9
- Log into your Control Panel.
- Select your domain.
- Under the Hosting section click on Web Directories.
- Click Add new Virtual Directory
- Name the new directory the same as the existing directory you are attempting to run DotNetNuke from.
- Uncheck Create physical directory with the same name as the virtual directory.
- Click the folder and browse to the existing folder you want to set up as an application.
- Click OK, and then OK again on the main page to create the application.
- Test to verify it is working.
Article ID: 600, Created: April 10, 2012 at 10:15 AM, Modified: October 14, 2015 at 8:06 PM