Configuring an ASP.NET application in IIS

12,784

Solution 1

Go into the properties of the virtual directory, click the 'Virtual Directory' tab and click 'Create' button under 'Application Settings', then set 'Execute permissions' to 'Scripts only'

Also check the ASP.NET tab to make sure it is set to the correct version for your app.

Lastly, make sure the application pool being used for the virtual directory is only used by other sites and virtual directories using the same version of ASP.NET.

Solution 2

right click your your virtual directory - properties - the the tab "virtual directory" click the button "create" in the middle and give your application a name

Share:
12,784
BIBD
Author by

BIBD

Oh gawd, I never fill these out

Updated on June 04, 2022

Comments

  • BIBD
    BIBD almost 2 years

    I've inherited some aspx (including the web.config file) and am getting the following error. I've created a virtual directory for it but I'm not sure how would I "configure it as an 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 49:             ASP.NET to identify an incoming user. 
    Line 50:         -->
    Line 51:        <authentication mode="Windows"/>
    Line 52: 
    Line 53:     <customErrors mode="Off"/>
    
    
    Source File: C:\<MYPATH>\web.config    Line: 51