Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Writing a custom membership providerWriting a custom membership provider
Previous
 
Next
New Post
2/17/2006 10:08 AM
 
Hi All,

Our company is considering writing a custom membership provider for 4, however I've heard rumblings that this might be a bad idea, as the whole membership system is going to change.

Can anyone give me any info on this?  Is this going to be something that's a year away, or are we talking about something sooner than that?  Any idea *at* *all* when we're talking about?

If we go ahead and work on a provider right now, are we going to have to throw everything away when changes come?  What level of changes are we talking about?  Is this going to conform to the Microsoft definition of a "membership provider" in such a fashion that I could write a "standard" membership provider and have it work with DNN?  (BTW, I'll note that I have little experience with membership providers, so please forgive any ignorance on my part)

I've been looking at Microsoft's info on membership providers.  Is that a good place to start?

  -Josh
 
New Post
2/23/2006 4:16 PM
 
So far, I was successful in replacing the DNNSQLMembershipProvider with one that simply read from an XML file.  It wasn't really functional, it was just a "proof of concept" sort of thing.  It was based on the sample provider MS provides ("ReadOnlyXmlMembershipProvider") in the link I gave above.

So, that worked well enough, but all I did was replace the code in the class DNNSQLMembershipProvider.  In other words, I didn't do it right.

Now what I want to do is create a separate class that will have my provider (which I'm going to call XmlMembershipProvider) and add that to my web.config, and use that.  Here's what I added to web.config:


        <add name="AbstractXMLMembershipProvider" type="DotNetNuke.Provider.AbstractXMLMembershipProvider"/>

That didn't work.  What should I be doing here?

Incidentally, I'm still looking for some guidelines on writing a custom membership provider and plugging it in to DNN.

Also, the projected I added to the DotNetNuke.sln file produces it's output in a bin subdirectory in it's own project directory.  All the other projects (e.g., the one for
DNNSQLMembershipProvider) appears to automatically have it's dll file copied to Website/bin, where it can be used by the website.  How do I setup my new project to do this?

As you can probably tell I'm quite new to writing providers for DNN.  Any help would be greatly apppreciated.

  -Josh
 
New Post
2/23/2006 4:18 PM
 

This process is not impossible now but if you have intentions of attempting to do this and it can hold off I would wait for another core release first.

It meets MS's definitions but the problem is there are some things we had to do to make MS's defintion meet DNN's already existing system.  This is part of the reason for changes it is also part of hte difficulty writing one currently.

 

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
2/23/2006 4:21 PM
 
Forgot to post my error:

Server Error in '/DotNetNuke_2' 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: Could not load type 'DotNetNuke.Provider.AbstractXMLMemberProvider'.

Source Error:

Line 164:        -->
Line 165:
Line 166: <add name="AbstractXMLMembershipProvider" type="DotNetNuke.Provider.AbstractXMLMembershipProvider"/>
Line 167: </providers>
Line 168: </membership>

Source File: D:\dev\DNN4\Website\web.config    Line: 166


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 
New Post
2/23/2006 4:22 PM
 

Two things, do you have a dll of this name and a matching class?

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Writing a custom membership providerWriting a custom membership provider


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out