Using Simple login And Get Error.. Help please..

Discussion in 'ASP.NET 2.0' started by zakifuad, Jul 15, 2006.

  1. Hello..

    After make a change to a web.config.
    • <membership defaultProvider="MyMembershipProvider"><providers>
    • <add connectionStringName="LocalSqlServer" passwordAttemptWindow="10"
    • enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false"
    • applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed"
    • minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0"
    • passwordStrengthRegularExpression="" name="MyMembershipProvider"
    • type="System.Web.Security.SqlMembershipProvider" />
    • </providers>
    • </membership>


    I create a new user, and everything is fine, but after log in i get the error below:
    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:





    Code:
    Line 2:  <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    Line 3:    <system.web>
    Line 4:      <membership defaultProvider="MyMembershipProvider">
    Line 5:        <providers>
    Line 6:          <add connectionStringName="LocalSqlServer" passwordAttemptWindow="10"
    Source File: C:\Documents and Settings\HP_Owner\My Documents\Visual Studio 2005\WebSites\LUQVision\secure\web.config Line: 4
    What should i do?

    Help me please.. thanks..[​IMG]
     
  2. If your application is running within a subdirectory, you will need configure that subdirectory as an application root using the Web Application tool in the control panel.

    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page