Re: Object reference not set to an instance of an object
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 3 Nov 2006 06:42:13 +0000 (UTC)
Have you implemented all the abstract methods?
can you manually call Membership.ValidateUser() (e.g.) ?
Set a breakpoint and see where it fails.
---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com
I have created a custom membership provider based on the Microsoft
example. Here is the beginning of the class:
namespace AspNet.Membership {
public sealed class MySQLMembershipProvider : MembershipProvider {
and here is web.config file:
32 <membership defaultProvider="MySQLMembershipProvider">
33 <providers>
34 <clear/>
35 <add name="MySQLMembershipProvider"
36 connectionStringName="MySQLConnectionString"
37 type="AspNet.Membership.MySQLMembershipProvider"
38 applicationName="fleetsweep"/>
39 </providers>
40 </membership>
When I try to access the web.config file from Web Site Administration
Tool, I get the following error:
There is a problem with your selected data store. This can be caused
by an invalid server name or credentials, or by insufficient
permission. It can also be caused by the role manager feature not
being enabled. Click the button below to be redirected to a page where
you can choose a new data store.
The following message may help in diagnosing the problem: Object
reference not set to an instance of an object.
(C:\Inetpub\wwwroot\fleetsweep\web.config line 37)
I am able to instantiate the class and use it.
thanks for your help.
Nick
.
- Follow-Ups:
- References:
- Prev by Date: Re: login problem
- Next by Date: Re: extending the Membership Provider
- Previous by thread: Object reference not set to an instance of an object
- Next by thread: Re: Object reference not set to an instance of an object
- Index(es):