Configuration error

Last post 10-10-2006 11:43 AM by Fran Cadaval. 1 replies.

Sort Posts:

  • Configuration error

    10-10-2006, 9:56 AM
    • Loading...
    • Fran Cadaval
    • Joined on 10-10-2006, 9:32 AM
    • Sevilla, Spain
    • Posts 2

    First of all excuse me, please, for my bad English.

    I am developing  a web aplication using membership. At a test web page, I created a new class that inherits from MembershipProvider and I used it to access members data in our data base. That was OK.

    Including it to de final proyect I have a 'configuration error' running my application. The error is described like this:

    Server Error in '/WEB' 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:
    Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name:
    index

    Source Error:

    Line 107:    <membership defaultProvider="Name">
    Line 108:      <providers>
    Line 109:        <clear/>
    Line 110:        <add name="Name" type="PMembershipProvider" connectionStringName="ConnectionStr" passwordFormat="Clear"/>
    Line 111:      </providers>
    Line 112:    </membership>


    Source File: C:\............\web.config    Line: 110
     

    I don't understand why the error is because an index out of range. I'm just adding a MembershipProvider (PMembershipProvider class) to the membership system. The membership tag is after 'authorization' and inside the system.web group. The PMembershipProvider class exists and the connection string 'ConnectionStr' is already defined in web.config.

    Thank you.
     

  • Re: Configuration error

    10-10-2006, 11:43 AM
    • Loading...
    • Fran Cadaval
    • Joined on 10-10-2006, 9:32 AM
    • Sevilla, Spain
    • Posts 2

    The error wasn't at config file but in PMembershipProvider class initialization. Exception was cought by configuration system and didn't appear debuging web app.

     Thank you.
     

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter