Converting Virtual Directory into an Application.

peter liles 556 Reputation points
2023-01-07T20:08:38.327+00:00

I am attempting to run a application and encounter this error when trying to execute a install script in browser.

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.

The solution recommended on the internet includes - convert the website folder into an application in IIS.
Process: Open the IIS from the programs menu and locate the website folder, this located under the default website node.

I am unable to locate this menu. Where am i supposed to find IIS and program menu within VSDE 2019?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,252 questions
{count} votes

Accepted answer
  1. Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor
    2023-01-09T02:56:53.073+00:00

    Hi @peter liles ,

    I am unable to locate this menu. Where am i supposed to find IIS and program menu within VSDE 2019?

    First you need to check if iis is installed in windows.
    Installing IIS Features on Windows 8 and Windows 10
    https://learn.microsoft.com/en-us/previous-versions/dynamicsnav-2016/hh167503(v=nav.90)?redirectedfrom=MSDN#installing-iis-features-on-windows-8-and-windows-10

    convert the website folder into an application in IIS.

    To configure an ASP.NET application under the root Web site.

    • In IIS Manager, expand the node for the local computer and then expand the Sites folder.
    • Right-click the folder that you want to convert to an application and then click Convert to Application.
    • The Add Application dialog box is displayed.
    • Click OK.

    You can review the following documents:
    https://learn.microsoft.com/en-us/previous-versions/aspnet/bb763173(v=vs.100)#configuring-an-aspnet-application
    https://learn.microsoft.com/en-us/previous-versions/aspnet/bb763173(v=vs.100)#to-create-a-virtual-directory-with-iis-manager-for-an-aspnet-application
    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful