CFF KB - Carrz-Fox-Fire Promotions Knowledge Base

CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.
  • Breadrumbs:
  • 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.

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
    6262
  • Date Created
    Saturday, January 14, 2023
  • This Article Has been Viewed
    74 times
  • Short Desc
    An error occurred during the processing of a configuration file required to service this request. This error can be caused by a virtual directory not being configured as an application in IIS.
  • Details
    Using an Upload script that has many components involved, you will need to make it an Application. If you try to access the file through your web browser, you will receive the following error.


     

    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:

    An application error occurred on the server. The current custom error settings
    for this application prevent the details of the application error from being viewed remotely (for security reasons).
    It could, however, be viewed by browsers running on the local server machine.

    Source File: G:\Inetpub\wwwroot\demo.domain.com\upload\web.config Line: 17

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3701.0
  • Recreate Issue
    When uploading files to your server, you may have to change the folder to an Application.
  • Resolve Issue
    Open IIS
    (If you are running an IIS Server Farm, you will want to do this on the machine which shares its Config file, so you only have to perform this action once.)
    Next, choose the [ServerName (domain.com\domainUser)]
    Then, choose [Sites]
    Then, select the site.
    Expand the site, and choose the folder you want to change to an application.
    Right-click and choose [Convert to Application]
    When the [Add Application] dialog opens, make sure everything is correct.
    Then click, [OK]

    For IIS Server Farms, to see that your changes worked across all IIS Servers which share the same Config files.
    Select the [demo.domain.com]
    On the far Right-side, click [View Applications]
    This will show you the applications associated with this domain and the Application we just created.