none
allowDefinition='MachineToApplication' RRS feed

  • Pergunta

  •  

    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:

    Line 16:     <compilation debug="true" targetFramework="4.0" />
    Line 17: 
    Line 18:     <authentication mode="Forms">
    Line 19:       <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
    Line 20:     </authentication>

    Source File: C:\inetpub\wwwroot\teste\web.config    Line: 18


    Show Additional Configuration Errors:

    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. (C:\inetpub\wwwroot\teste\web.config line 22)
    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. (C:\inetpub\wwwroot\teste\web.config line 32)
    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. (C:\inetpub\wwwroot\teste\web.config line 39)

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
    • Movido Eder CostaModerator quinta-feira, 24 de novembro de 2011 12:38 De: .Net Desenvolvimento - Geral (De:.NET Development - Geral)
    sexta-feira, 11 de novembro de 2011 15:31

Respostas

  • Boa tarde,

    verifique se o diretório onde a aplicação foi disponibilizada é um Diretório Virtual no IIS. Para que o .NET funcione é preciso que o diretório seja uma "aplicação" do IIS.

    Abraços,


    Daniel Cheida de Oliveira
    • Sugerido como Resposta Daniel Cheida sexta-feira, 11 de novembro de 2011 17:13
    • Marcado como Resposta Eder CostaModerator quinta-feira, 24 de novembro de 2011 12:37
    sexta-feira, 11 de novembro de 2011 17:13