error on form authentication

Discussion in 'General troubleshooting' started by xpslib, Nov 7, 2009.

  1. it's an mvc app. installed under root dir.

    but still keep get 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 56: ASP.NET to identify an incoming user.
    Line 57: -->
    Line 58: <authentication mode="Forms">
    Line 59: <forms loginUrl="~/Member/LogOn" timeout="2880"/>
    Line 60: </authentication>

    How to fix it? it's automatically configged as app under root dir, right?
  2. another info:

    when I try to list apps or virtual dirs in IIS manager, the list is empty. why?
  3. the error was being thrown from the web.config in you views directory.

    Here is the all content:

    <?xml version="1.0"?>
    <add path="*" verb="*"

    Enabling request validation in view pages would cause validation to occur
    after the input has already been processed by the controller. By default
    MVC performs request validation before a controller processes the input.
    To change this behavior apply the ValidateInputAttribute to a
    controller or action.
    pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
    pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
    userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    <add assembly="System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />

    <validation validateIntegratedModeConfiguration="false"/>
    <remove name="BlockViewHandler"/>
    <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler"/>
  5. OH I uploaded to wrong folder, solved.

Share This Page