I am getting a server error in ‘/wfgen’ application, error parser error message “It is an error to use a section registered as allowDefinition=MachineToApplication beyond application level”

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 XX: ASP.NET to identify an incoming user. Line XX: --> Line XX: Line XX: <!-- Line XX: The section enables configuration `

Cause

The error message indicates that the Webform folder which you are trying to use with the WFG process is not configured as an application in IIS.

Resolution

Please do the following:

  1. Browse to the Webform folder which you are using with the WFG process from IIS console.
  2. Right click and go to the properties.
  3. Create the application by clicking on the create button.
  4. In the directory security tab make sure you are using only “Basic authentication” everything else is unchecked.
  5. In ASP.NET tab make sure you are using .NET 2.0.
  6. Apply your changes and press OK.
  7. In WFG admin module go to the application process and make sure that FORM_URL process data points to the right location (points to the Webform application that you have just configured).