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.