Ok, since there has been no response to my original post, I'm posting some followup info just in case someone out there can help...
I looked up some information on a custom provider and implemented a very simple custom membership provider based on this article (http://www.devx.com/asp/Article/29256). It worked great, so I adapted it to use my own SQL 2005 database tables and verified that it worked with them too. Awesome, I'm on my way...
So, I took this code, and, moved it into an application that I've been struggling with for the last few weeks.
Now, here’s what I observed…
The login control behaves VERY unpredictably. I can’t personally figure out what is happening. Worse yet, I haven’t found any documentation on the Login control and what exceptions it might throw so that I might troubleshoot it. This means I’m left with experimentation. Can this be true? Am I just missing something? Maybe one of the ASP.NET development team can share some of the inner workings of the control’s behavior so that what follows might not happen to others trying to work with the login control.
My story…
After setting up the web.config file to use my new custom provider and adding my class to the App_Code dir, the page that I had already setup with the drag and drop login control STILL wouldn’t work. Using debugging I was able to figure out that it wasn't using my provider despite the web.config file telling it it should (it never initialized my object). So, I moved my web.config file to a brand new empty application on my local web server. I added a single page to this nice clean application, and dropped the login control on the page. I copied my class file over. I didn’t change a single other thing or write even one single line of code…and... IT WORKED, but Why??
So, I go back into the original little application that has plagued my existence for the last two weeks and…
Added a new page to the application.
Added the login control to that new page.
I changed absolutely nothing else....
And….
IT WORKED TOO (huh?). The original page with the login control that wasn’t working still wasn’t working. So, I just deleted that page and went on my way about trying to be productive with the rest of the project.
Then, again today, and inexplicably (I wasn’t doing any work to the membership stuff), it STOPPED WORKING!!!! This is driving me crazy. So, same steps again….
In the same application, with no manual changes to ANY CODE AT ALL, I added a new page, with a fresh login control and IT WORKS!
So, there must be something happening behind the scenes and totally out of my direct control that affects which provider the Login control actually uses (builtin vs. mine) to connect to the data source.
Please, for the love of all things outdoors (which I’ve seen very little of lately…), someone who understands the inner workings of the Login control, please help shed some light on what is happening here.
Thanks in advance.
Bernie